Skip to content

Commit

Permalink
autogen(docs): generate and format documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 5, 2020
1 parent 6619e59 commit e5f7511
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 49 deletions.
103 changes: 56 additions & 47 deletions docs/docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ log:
# - Windows Command Line (CMD):
# > set LOG_LEVEL=<value>
#
level: warn
level: panic

## leak_sensitive_values ##
#
Expand All @@ -67,7 +67,7 @@ log:
# - Windows Command Line (CMD):
# > set LOG_LEAK_SENSITIVE_VALUES=<value>
#
leak_sensitive_values: true
leak_sensitive_values: false

## format ##
#
Expand All @@ -85,7 +85,7 @@ log:
# - Windows Command Line (CMD):
# > set LOG_FORMAT=<value>
#
format: json
format: text

## serve ##
#
Expand All @@ -107,7 +107,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_PORT=<value>
#
port: 54992
port: 52749

## host ##
#
Expand Down Expand Up @@ -176,7 +176,10 @@ serve:
# > set SERVE_PUBLIC_CORS_ALLOWED_METHODS=<value>
#
allowed_methods:
- POST
- OPTIONS
- GET
- TRACE
- TRACE

## allowed_headers ##
#
Expand All @@ -191,10 +194,10 @@ serve:
# > set SERVE_PUBLIC_CORS_ALLOWED_HEADERS=<value>
#
allowed_headers:
- dolor in et anim labore
- sed officia minim laboris
- cupidatat sit esse dolore
- dolor incididunt reprehenderit
- do in dolor pariatur sit
- ea labore nostrud mollit
- consequat magna
- ullamco eiusmod deserunt pariatur

## exposed_headers ##
#
Expand All @@ -209,7 +212,8 @@ serve:
# > set SERVE_PUBLIC_CORS_EXPOSED_HEADERS=<value>
#
exposed_headers:
- consequat minim Ut irure
- commodo pariatur
- nisi est dolore

## allow_credentials ##
#
Expand All @@ -223,7 +227,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_CORS_ALLOW_CREDENTIALS=<value>
#
allow_credentials: false
allow_credentials: true

## options_passthrough ##
#
Expand Down Expand Up @@ -251,7 +255,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_CORS_MAX_AGE=<value>
#
max_age: 62544200
max_age: 54772712

## debug ##
#
Expand All @@ -265,7 +269,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_CORS_DEBUG=<value>
#
debug: true
debug: false

## socket ##
#
Expand All @@ -282,7 +286,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_SOCKET_OWNER=<value>
#
owner: voluptate
owner: irure mollit sit proident

## group ##
#
Expand All @@ -294,7 +298,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_SOCKET_GROUP=<value>
#
group: consectetur fugiat mollit deserunt
group: dolor qui Excepteur sunt

## mode ##
#
Expand All @@ -312,7 +316,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_SOCKET_MODE=<value>
#
mode: 1
mode: 385

## access_log ##
#
Expand All @@ -331,7 +335,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_ACCESS_LOG_DISABLE_FOR_HEALTH=<value>
#
disable_for_health: true
disable_for_health: false

## admin ##
#
Expand All @@ -346,7 +350,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_PORT=<value>
#
port: 42726
port: 60296

## host ##
#
Expand All @@ -361,7 +365,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_HOST=<value>
#
host: ''
host: localhost

## cors ##
#
Expand All @@ -380,7 +384,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_CORS_ENABLED=<value>
#
enabled: false
enabled: true

## allowed_origins ##
#
Expand All @@ -400,7 +404,9 @@ serve:
# > set SERVE_ADMIN_CORS_ALLOWED_ORIGINS=<value>
#
allowed_origins:
- '*'
- https://example.com
- https://*.example.com
- https://*.foo.example.com

## allowed_methods ##
#
Expand All @@ -415,10 +421,7 @@ serve:
# > set SERVE_ADMIN_CORS_ALLOWED_METHODS=<value>
#
allowed_methods:
- TRACE
- HEAD
- PATCH
- CONNECT
- PUT

## allowed_headers ##
#
Expand All @@ -433,7 +436,9 @@ serve:
# > set SERVE_ADMIN_CORS_ALLOWED_HEADERS=<value>
#
allowed_headers:
- non mollit qui
- mollit dolore velit ea qui
- sint nulla exercitation laborum sed
- pariatur dolor

## exposed_headers ##
#
Expand All @@ -448,7 +453,9 @@ serve:
# > set SERVE_ADMIN_CORS_EXPOSED_HEADERS=<value>
#
exposed_headers:
- Lorem dolor mollit Excepteur
- dolor dolore dolor
- aute
- dolor cillum mollit magna

## allow_credentials ##
#
Expand All @@ -462,7 +469,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_CORS_ALLOW_CREDENTIALS=<value>
#
allow_credentials: false
allow_credentials: true

## options_passthrough ##
#
Expand All @@ -476,7 +483,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_CORS_OPTIONS_PASSTHROUGH=<value>
#
options_passthrough: true
options_passthrough: false

## max_age ##
#
Expand All @@ -490,7 +497,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_CORS_MAX_AGE=<value>
#
max_age: 15278442
max_age: 91326270

## debug ##
#
Expand All @@ -504,7 +511,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_CORS_DEBUG=<value>
#
debug: true
debug: false

## socket ##
#
Expand All @@ -521,7 +528,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_SOCKET_OWNER=<value>
#
owner: proident velit ea cupidatat
owner: adipisicing

## group ##
#
Expand All @@ -533,7 +540,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_SOCKET_GROUP=<value>
#
group: ea
group: non Duis enim

## mode ##
#
Expand All @@ -551,7 +558,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_SOCKET_MODE=<value>
#
mode: 86
mode: 332

## access_log ##
#
Expand Down Expand Up @@ -597,15 +604,15 @@ serve:
# Configures the private key (pem encoded).
#
cert:
## path ##
## base64 ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_TLS_CERT_PATH=<value>
# $ export SERVE_TLS_CERT_BASE64=<value>
# - Windows Command Line (CMD):
# > set SERVE_TLS_CERT_PATH=<value>
# > set SERVE_TLS_CERT_BASE64=<value>
#
path: /path/to/file.pem
base64: b3J5IGh5ZHJhIGlzIGF3ZXNvbWUK

## allow_termination_from ##
#
Expand All @@ -621,6 +628,7 @@ serve:
- 127.0.0.1/32
- 127.0.0.1/32
- 127.0.0.1/32
- 127.0.0.1/32

## cookies ##
#
Expand All @@ -642,7 +650,7 @@ serve:
# - Windows Command Line (CMD):
# > set SERVE_COOKIES_SAME_SITE_MODE=<value>
#
same_site_mode: Strict
same_site_mode: None

## same_site_legacy_workaround ##
#
Expand Down Expand Up @@ -671,7 +679,7 @@ serve:
# - Windows Command Line (CMD):
# > set DSN=<value>
#
dsn: Duis occaecat consectetur do laborum
dsn: elit Ut id reprehenderit

## webfinger ##
#
Expand All @@ -698,7 +706,8 @@ webfinger:
# - Windows Command Line (CMD):
# > set WEBFINGER_JWKS_BROADCAST_KEYS=<value>
#
broadcast_keys: hydra.jwt.access-token
broadcast_keys:
- hydra.openid.id-token

## oidc_discovery ##
#
Expand Down Expand Up @@ -989,7 +998,7 @@ strategies:
# - Windows Command Line (CMD):
# > set STRATEGIES_ACCESS_TOKEN=<value>
#
access_token: opaque
access_token: jwt

## ttl ##
#
Expand Down Expand Up @@ -1036,7 +1045,7 @@ ttl:
# - Windows Command Line (CMD):
# > set TTL_REFRESH_TOKEN=<value>
#
refresh_token: '-1'
refresh_token: 720h

## id_token ##
#
Expand Down Expand Up @@ -1064,7 +1073,7 @@ ttl:
# - Windows Command Line (CMD):
# > set TTL_AUTH_CODE=<value>
#
auth_code: 10m
auth_code: 1h

## oauth2 ##
#
Expand All @@ -1084,7 +1093,7 @@ oauth2:
# - Windows Command Line (CMD):
# > set OAUTH2_EXPOSE_INTERNAL_ERRORS=<value>
#
expose_internal_errors: true
expose_internal_errors: false

## hashers ##
#
Expand All @@ -1110,7 +1119,7 @@ oauth2:
# - Windows Command Line (CMD):
# > set OAUTH2_HASHERS_BCRYPT_COST=<value>
#
cost: 65577862
cost: 22342444

## pkce ##
#
Expand Down Expand Up @@ -1339,5 +1348,5 @@ tracing:
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_ZIPKIN_SERVER_URL=<value>
#
server_url: https://FK.ijilmrVntWzYVwl,FfKIzcSsyuUt9HcAf3rf7R3Kls0ZlZi+lMeo6IREP2YXWF
server_url: http://aYOkKtvGgtBDVMSTTYUPXru.jaetDxao+sLKrKlovwFItP
```
4 changes: 2 additions & 2 deletions docs/docs/sdk/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func main() {
transport := httptransport.NewWithClient("host:port", "/", []string{"https"}, tlsTermClient)
hydra := client.New(transport, nil)
// ...
}
Expand Down Expand Up @@ -178,7 +178,7 @@ func main() {
}
transport := httptransport.NewWithClient("host:port", "/", []string{"https"}, skipTlsClient)
hydra := client.New(transport, nil)

// ...
}
```

0 comments on commit e5f7511

Please sign in to comment.