debian-hydra/conf/hydra.yml

1636 lines
45 KiB
YAML
Raw Normal View History

2020-06-17 13:17:15 +02:00
## ORY Hydra Configuration
#
## serve ##
#
# Controls the configuration for the http(s) daemon(s).
#
serve:
2021-09-13 12:11:40 +02:00
## admin ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
admin:
2020-06-17 13:17:15 +02:00
## host ##
#
2021-09-13 12:11:40 +02:00
# The interface or unix socket ORY Hydra should listen and handle administrative API requests on. Use the prefix "unix:" to specify a path to a unix socket. Leave empty to listen on all interfaces.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - localhost
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_HOST=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_HOST=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
host: localhost
2020-06-17 13:17:15 +02:00
## cors ##
#
# Configures Cross Origin Resource Sharing for public endpoints.
#
cors:
## allowed_origins ##
#
# A list of origins a cross-domain request can be executed from. If the special * value is present in the list, all origins will be allowed. An origin may contain a wildcard (*) to replace 0 or more characters (i.e.: http://*.domain.com). Only one wildcard can be used per origin.
#
# Default value: *
#
# Examples:
# - - https://example.com
# - https://*.example.com
# - https://*.foo.example.com
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_ALLOWED_ORIGINS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_ALLOWED_ORIGINS=<value>
2020-06-17 13:17:15 +02:00
#
allowed_origins:
2021-09-13 12:11:40 +02:00
- https://example.com
- https://*.example.com
- https://*.foo.example.com
2020-06-17 13:17:15 +02:00
## allowed_methods ##
#
# A list of HTTP methods the user agent is allowed to use with cross-domain requests.
#
# Default value: POST,GET,PUT,PATCH,DELETE
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_ALLOWED_METHODS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_ALLOWED_METHODS=<value>
2020-06-17 13:17:15 +02:00
#
allowed_methods:
2021-09-13 12:11:40 +02:00
- POST
2020-06-17 13:17:15 +02:00
## allowed_headers ##
#
# A list of non simple headers the client is allowed to use with cross-domain requests.
#
# Default value: Authorization,Content-Type
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_ALLOWED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_ALLOWED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
#
allowed_headers:
2021-09-13 12:11:40 +02:00
- ''
2020-06-17 13:17:15 +02:00
## exposed_headers ##
#
# Sets which headers are safe to expose to the API of a CORS API specification.
#
# Default value: Content-Type
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_EXPOSED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_EXPOSED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
#
exposed_headers:
2021-09-13 12:11:40 +02:00
- ''
2020-06-17 13:17:15 +02:00
## allow_credentials ##
#
# Sets whether the request can include user credentials like cookies, HTTP authentication or client side SSL certificates.
#
# Default value: true
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_ALLOW_CREDENTIALS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_ALLOW_CREDENTIALS=<value>
2020-06-17 13:17:15 +02:00
#
allow_credentials: false
## options_passthrough ##
#
# TODO
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_OPTIONS_PASSTHROUGH=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_OPTIONS_PASSTHROUGH=<value>
2020-06-17 13:17:15 +02:00
#
options_passthrough: false
## max_age ##
#
# Sets how long (in seconds) the results of a preflight request can be cached. If set to 0, every request is preceded by a preflight request.
#
2021-09-13 12:11:40 +02:00
# Minimum value: 0
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_MAX_AGE=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_MAX_AGE=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
max_age: 0
2020-06-17 13:17:15 +02:00
## debug ##
#
# Adds additional log output to debug server side CORS issues.
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_CORS_DEBUG=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_CORS_DEBUG=<value>
2020-06-17 13:17:15 +02:00
#
debug: false
2021-09-13 12:11:40 +02:00
## enabled ##
#
# Sets whether CORS is enabled.
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_CORS_ENABLED=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_CORS_ENABLED=<value>
#
enabled: false
## socket ##
#
# Sets the permissions of the unix socket
#
socket:
## group ##
#
# Group of unix socket. If empty, the group will be the primary group of the user running hydra.
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_SOCKET_GROUP=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_SOCKET_GROUP=<value>
#
group: ''
## mode ##
#
# Mode of unix socket in numeric form
#
# Default value: 493
#
# Minimum value: 0
#
# Maximum value: 511
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_SOCKET_MODE=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_SOCKET_MODE=<value>
#
mode: 0
## owner ##
#
# Owner of unix socket. If empty, the owner will be the user running hydra.
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_SOCKET_OWNER=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_SOCKET_OWNER=<value>
#
owner: ''
2020-06-17 13:17:15 +02:00
## access_log ##
#
2021-09-13 12:11:40 +02:00
# Access Log configuration for admin server.
2020-06-17 13:17:15 +02:00
#
access_log:
## disable_for_health ##
#
# Disable access log for health endpoints.
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_ADMIN_ACCESS_LOG_DISABLE_FOR_HEALTH=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_ADMIN_ACCESS_LOG_DISABLE_FOR_HEALTH=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
disable_for_health: false
## tls ##
#
tls:
## cert ##
#
cert:
## path ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_TLS_CERT_PATH=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_TLS_CERT_PATH=<value>
#
path: /etc/ssl/certs/ssl-cert-snakeoil.pem
## allow_termination_from ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_TLS_ALLOW_TERMINATION_FROM=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_TLS_ALLOW_TERMINATION_FROM=<value>
#
allow_termination_from:
- 127.0.0.1/32
## enabled ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_TLS_ENABLED=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_TLS_ENABLED=<value>
#
enabled: false
## key ##
#
key:
## path ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_TLS_KEY_PATH=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_TLS_KEY_PATH=<value>
#
path: /etc/ssl/private/ssl-cert-snakeoil.key
2020-06-17 13:17:15 +02:00
## port ##
#
# Default value: 4445
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_ADMIN_PORT=<value>
# - Windows Command Line (CMD):
# > set SERVE_ADMIN_PORT=<value>
#
2021-09-13 12:11:40 +02:00
port: 1
## tls ##
#
# Configures HTTPS (HTTP over TLS). If configured, the server automatically supports HTTP/2.
#
tls:
## cert ##
#
# Configures the public certificate (pem encoded).
#
cert:
## path ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_TLS_CERT_PATH=<value>
# - Windows Command Line (CMD):
# > set SERVE_TLS_CERT_PATH=<value>
#
path: /etc/ssl/certs/ssl-cert-snakeoil.pem
## allow_termination_from ##
#
# Whitelist one or multiple CIDR address ranges and allow them to terminate TLS connections. Be aware that the X-Forwarded-Proto header must be set and must never be modifiable by anyone but your proxy / gateway / load balancer. Supports ipv4 and ipv6. Hydra serves http instead of https when this option is set.
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_TLS_ALLOW_TERMINATION_FROM=<value>
# - Windows Command Line (CMD):
# > set SERVE_TLS_ALLOW_TERMINATION_FROM=<value>
#
allow_termination_from:
- 127.0.0.1/32
## key ##
#
# Configures the private key (pem encoded).
#
key:
## path ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_TLS_KEY_PATH=<value>
# - Windows Command Line (CMD):
# > set SERVE_TLS_KEY_PATH=<value>
#
path: /etc/ssl/private/ssl-cert-snakeoil.key
## cookies ##
#
cookies:
## same_site_legacy_workaround ##
#
# Some older browser versions dont work with SameSite=None. This option enables the workaround defined in https://web.dev/samesite-cookie-recipes/ which essentially stores a second cookie without SameSite as a fallback.
#
# Default value: false
#
# Examples:
# - true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_COOKIES_SAME_SITE_LEGACY_WORKAROUND=<value>
# - Windows Command Line (CMD):
# > set SERVE_COOKIES_SAME_SITE_LEGACY_WORKAROUND=<value>
#
same_site_legacy_workaround: true
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## same_site_mode ##
#
# Specify the SameSite mode that cookies should be sent with.
#
# Default value: None
#
# One of:
# - Strict
# - Lax
# - None
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_COOKIES_SAME_SITE_MODE=<value>
# - Windows Command Line (CMD):
# > set SERVE_COOKIES_SAME_SITE_MODE=<value>
#
same_site_mode: Strict
## public ##
#
# Controls the public daemon serving public API endpoints like /oauth2/auth, /oauth2/token, /.well-known/jwks.json
#
public:
2020-06-17 13:17:15 +02:00
## host ##
#
2021-09-13 12:11:40 +02:00
# The interface or unix socket ORY Hydra should listen and handle public API requests on. Use the prefix "unix:" to specify a path to a unix socket. Leave empty to listen on all interfaces.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - localhost
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_HOST=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_HOST=<value>
2020-06-17 13:17:15 +02:00
#
host: localhost
## cors ##
#
# Configures Cross Origin Resource Sharing for public endpoints.
#
cors:
## allowed_origins ##
#
# A list of origins a cross-domain request can be executed from. If the special * value is present in the list, all origins will be allowed. An origin may contain a wildcard (*) to replace 0 or more characters (i.e.: http://*.domain.com). Only one wildcard can be used per origin.
#
# Default value: *
#
# Examples:
# - - https://example.com
# - https://*.example.com
# - https://*.foo.example.com
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_ALLOWED_ORIGINS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_ALLOWED_ORIGINS=<value>
2020-06-17 13:17:15 +02:00
#
allowed_origins:
2021-09-13 12:11:40 +02:00
- https://example.com
- https://*.example.com
- https://*.foo.example.com
2020-06-17 13:17:15 +02:00
## allowed_methods ##
#
# A list of HTTP methods the user agent is allowed to use with cross-domain requests.
#
# Default value: POST,GET,PUT,PATCH,DELETE
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_ALLOWED_METHODS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_ALLOWED_METHODS=<value>
2020-06-17 13:17:15 +02:00
#
allowed_methods:
- POST
## allowed_headers ##
#
# A list of non simple headers the client is allowed to use with cross-domain requests.
#
# Default value: Authorization,Content-Type
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_ALLOWED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_ALLOWED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
#
allowed_headers:
2021-09-13 12:11:40 +02:00
- ''
2020-06-17 13:17:15 +02:00
## exposed_headers ##
#
# Sets which headers are safe to expose to the API of a CORS API specification.
#
# Default value: Content-Type
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_EXPOSED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_EXPOSED_HEADERS=<value>
2020-06-17 13:17:15 +02:00
#
exposed_headers:
2021-09-13 12:11:40 +02:00
- ''
2020-06-17 13:17:15 +02:00
## allow_credentials ##
#
# Sets whether the request can include user credentials like cookies, HTTP authentication or client side SSL certificates.
#
# Default value: true
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_ALLOW_CREDENTIALS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_ALLOW_CREDENTIALS=<value>
2020-06-17 13:17:15 +02:00
#
allow_credentials: false
## options_passthrough ##
#
# TODO
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_OPTIONS_PASSTHROUGH=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_OPTIONS_PASSTHROUGH=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
options_passthrough: false
2020-06-17 13:17:15 +02:00
## max_age ##
#
# Sets how long (in seconds) the results of a preflight request can be cached. If set to 0, every request is preceded by a preflight request.
#
2021-09-13 12:11:40 +02:00
# Minimum value: 0
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_MAX_AGE=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_MAX_AGE=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
max_age: 0
2020-06-17 13:17:15 +02:00
## debug ##
#
# Adds additional log output to debug server side CORS issues.
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_DEBUG=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_DEBUG=<value>
2020-06-17 13:17:15 +02:00
#
debug: false
2021-09-13 12:11:40 +02:00
## enabled ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Sets whether CORS is enabled.
2020-06-17 13:17:15 +02:00
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_CORS_ENABLED=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_CORS_ENABLED=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
enabled: false
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## socket ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Sets the permissions of the unix socket
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
socket:
## group ##
#
# Group of unix socket. If empty, the group will be the primary group of the user running hydra.
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_SOCKET_GROUP=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_SOCKET_GROUP=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
group: ''
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## mode ##
#
# Mode of unix socket in numeric form
#
# Default value: 493
#
# Minimum value: 0
#
# Maximum value: 511
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_SOCKET_MODE=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_SOCKET_MODE=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
mode: 0
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## owner ##
#
# Owner of unix socket. If empty, the owner will be the user running hydra.
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_PUBLIC_SOCKET_OWNER=<value>
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_SOCKET_OWNER=<value>
#
owner: ''
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## access_log ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Access Log configuration for public server.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
access_log:
## disable_for_health ##
#
# Disable access log for health endpoints.
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_PUBLIC_ACCESS_LOG_DISABLE_FOR_HEALTH=<value>
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_ACCESS_LOG_DISABLE_FOR_HEALTH=<value>
#
disable_for_health: false
## tls ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Configures HTTPS (HTTP over TLS). If configured, the server automatically supports HTTP/2.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
tls:
## cert ##
#
# Configures the public certificate (pem encoded).
#
cert:
## path ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_PUBLIC_TLS_CERT_PATH=<value>
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_TLS_CERT_PATH=<value>
#
path: /etc/ssl/certs/ssl-cert-snakeoil.pem
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## allow_termination_from ##
#
# Whitelist one or multiple CIDR address ranges and allow them to terminate TLS connections. Be aware that the X-Forwarded-Proto header must be set and must never be modifiable by anyone but your proxy / gateway / load balancer. Supports ipv4 and ipv6. Hydra serves http instead of https when this option is set.
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_PUBLIC_TLS_ALLOW_TERMINATION_FROM=<value>
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_TLS_ALLOW_TERMINATION_FROM=<value>
#
allow_termination_from:
- 127.0.0.1/32
## key ##
#
# Configures the private key (pem encoded).
#
key:
## path ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SERVE_PUBLIC_TLS_KEY_PATH=<value>
# - Windows Command Line (CMD):
# > set SERVE_PUBLIC_TLS_KEY_PATH=<value>
#
path: /etc/ssl/private/ssl-cert-snakeoil.key
## port ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Default value: 4444
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SERVE_PUBLIC_PORT=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SERVE_PUBLIC_PORT=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
port: 1
2020-06-17 13:17:15 +02:00
## dsn ##
#
# Sets the data source name. This configures the backend where ORY Hydra persists data. If dsn is "memory", data will be written to memory and is lost when you restart this instance. ORY Hydra supports popular SQL databases. For more detailed configuration information go to: https://www.ory.sh/docs/hydra/dependencies-environment#sql
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export DSN=<value>
# - Windows Command Line (CMD):
# > set DSN=<value>
#
2021-09-13 12:11:40 +02:00
dsn: 'memory'
2020-06-17 13:17:15 +02:00
## webfinger ##
#
# Configures ./well-known/ settings.
#
webfinger:
2021-09-13 12:11:40 +02:00
## oidc_discovery ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Configures OpenID Connect Discovery (/.well-known/openid-configuration).
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
oidc_discovery:
## token_url ##
#
# Overwrites the OAuth2 Token URL
#
# Examples:
# - https://my-service.com/oauth2/token
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export WEBFINGER_OIDC_DISCOVERY_TOKEN_URL=<value>
# - Windows Command Line (CMD):
# > set WEBFINGER_OIDC_DISCOVERY_TOKEN_URL=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
token_url: https://my-service.com/oauth2/token
## auth_url ##
#
# Overwrites the OAuth2 Auth URL
2020-06-17 13:17:15 +02:00
#
# Examples:
2021-09-13 12:11:40 +02:00
# - https://my-service.com/oauth2/auth
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export WEBFINGER_OIDC_DISCOVERY_AUTH_URL=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set WEBFINGER_OIDC_DISCOVERY_AUTH_URL=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
auth_url: https://my-service.com/oauth2/auth
2020-06-17 13:17:15 +02:00
## client_registration_url ##
#
2021-09-13 12:11:40 +02:00
# Sets the OpenID Connect Dynamic Client Registration Endpoint
#
2020-06-17 13:17:15 +02:00
# Examples:
# - https://my-service.com/clients
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export WEBFINGER_OIDC_DISCOVERY_CLIENT_REGISTRATION_URL=<value>
# - Windows Command Line (CMD):
# > set WEBFINGER_OIDC_DISCOVERY_CLIENT_REGISTRATION_URL=<value>
#
client_registration_url: https://my-service.com/clients
## supported_claims ##
#
# A list of supported claims to be broadcasted. Claim "sub" is always included.
#
# Examples:
# - - email
# - username
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export WEBFINGER_OIDC_DISCOVERY_SUPPORTED_CLAIMS=<value>
# - Windows Command Line (CMD):
# > set WEBFINGER_OIDC_DISCOVERY_SUPPORTED_CLAIMS=<value>
#
supported_claims:
- email
- username
## supported_scope ##
#
# The scope OAuth 2.0 Clients may request. Scope `offline`, `offline_access`, and `openid` are always included.
#
# Examples:
# - - email
# - whatever
# - read.photos
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export WEBFINGER_OIDC_DISCOVERY_SUPPORTED_SCOPE=<value>
# - Windows Command Line (CMD):
# > set WEBFINGER_OIDC_DISCOVERY_SUPPORTED_SCOPE=<value>
#
supported_scope:
- email
- whatever
- read.photos
## userinfo_url ##
#
# A URL of the userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to ORY Hydra's userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself.
#
# Examples:
# - https://example.org/my-custom-userinfo-endpoint
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export WEBFINGER_OIDC_DISCOVERY_USERINFO_URL=<value>
# - Windows Command Line (CMD):
# > set WEBFINGER_OIDC_DISCOVERY_USERINFO_URL=<value>
#
userinfo_url: https://example.org/my-custom-userinfo-endpoint
2021-09-13 12:11:40 +02:00
## jwks_url ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Overwrites the JWKS URL
#
# Examples:
# - https://my-service.com/.well-known/jwks.json
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export WEBFINGER_OIDC_DISCOVERY_JWKS_URL=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set WEBFINGER_OIDC_DISCOVERY_JWKS_URL=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
jwks_url: https://my-service.com/.well-known/jwks.json
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## jwks ##
#
# Configures the /.well-known/jwks.json endpoint.
#
jwks:
## broadcast_keys ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# A list of JSON Web Keys that should be exposed at that endpoint. This is usually the public key for verifying OpenID Connect ID Tokens. However, you might want to add additional keys here as well.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Default value: hydra.openid.id-token
#
# Examples:
# - hydra.jwt.access-token
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export WEBFINGER_JWKS_BROADCAST_KEYS=<value>
# - Windows Command Line (CMD):
# > set WEBFINGER_JWKS_BROADCAST_KEYS=<value>
#
broadcast_keys:
- hydra.jwt.access-token
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## oidc ##
#
# Configures OpenID Connect features.
#
oidc:
2020-06-17 13:17:15 +02:00
## dynamic_client_registration ##
#
# Configures OpenID Connect Dynamic Client Registration (exposed as admin endpoints /clients/...).
#
dynamic_client_registration:
## default_scope ##
#
# The OpenID Connect Dynamic Client Registration specification has no concept of whitelisting OAuth 2.0 Scope. If you want to expose Dynamic Client Registration, you should set the default scope enabled for newly registered clients. Keep in mind that users can overwrite this default by setting the "scope" key in the registration payload, effectively disabling the concept of whitelisted scopes.
#
# Examples:
# - - openid
# - offline
# - offline_access
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export OIDC_DYNAMIC_CLIENT_REGISTRATION_DEFAULT_SCOPE=<value>
# - Windows Command Line (CMD):
# > set OIDC_DYNAMIC_CLIENT_REGISTRATION_DEFAULT_SCOPE=<value>
#
default_scope:
- openid
- offline
- offline_access
2021-09-13 12:11:40 +02:00
## subject_identifiers ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Configures the Subject Identifier algorithm. For more information please head over to the documentation: https://www.ory.sh/docs/hydra/advanced#subject-identifier-algorithms
#
# Examples:
# - supported_types:
# - public
# - pairwise
# pairwise:
# salt: some-random-salt
#
subject_identifiers:
## supported_types ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# A list of algorithms to enable.
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
supported_types:
- public
- pairwise
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## pairwise ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Configures the pairwise algorithm.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
pairwise:
## salt ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=<value>
# - Windows Command Line (CMD):
# > set OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=<value>
#
salt: some-random-salt
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## urls ##
#
urls:
2020-06-17 13:17:15 +02:00
## login ##
#
2021-09-13 12:11:40 +02:00
# Sets the login endpoint of the User Login & Consent flow. Defaults to an internal fallback URL showing an error.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - https://my-login.app/login
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_LOGIN=<value>
# - Windows Command Line (CMD):
# > set URLS_LOGIN=<value>
#
login: https://my-login.app/login
## consent ##
#
2021-09-13 12:11:40 +02:00
# Sets the consent endpoint of the User Login & Consent flow. Defaults to an internal fallback URL showing an error.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - https://my-consent.app/consent
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_CONSENT=<value>
# - Windows Command Line (CMD):
# > set URLS_CONSENT=<value>
#
consent: https://my-consent.app/consent
## logout ##
#
2021-09-13 12:11:40 +02:00
# Sets the logout endpoint. Defaults to an internal fallback URL showing an error.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - https://my-logout.app/logout
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_LOGOUT=<value>
# - Windows Command Line (CMD):
# > set URLS_LOGOUT=<value>
#
logout: https://my-logout.app/logout
## error ##
#
2021-09-13 12:11:40 +02:00
# Sets the error endpoint. The error ui will be shown when an OAuth2 error occurs that which can not be sent back to the client. Defaults to an internal fallback URL showing an error.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - https://my-error.app/error
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_ERROR=<value>
# - Windows Command Line (CMD):
# > set URLS_ERROR=<value>
#
error: https://my-error.app/error
## post_logout_redirect ##
#
# When a user agent requests to logout, it will be redirected to this url afterwards per default.
#
# Examples:
# - https://my-example.app/logout-successful
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_POST_LOGOUT_REDIRECT=<value>
# - Windows Command Line (CMD):
# > set URLS_POST_LOGOUT_REDIRECT=<value>
#
post_logout_redirect: https://my-example.app/logout-successful
2021-09-13 12:11:40 +02:00
## self ##
#
self:
## public ##
#
# This is the base location of the public endpoints of your ORY Hydra installation. This should typically be equal to the issuer value. If left unspecified, it falls back to the issuer value.
#
# Examples:
# - https://localhost:4444/
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_SELF_PUBLIC=<value>
# - Windows Command Line (CMD):
# > set URLS_SELF_PUBLIC=<value>
#
public: https://localhost:4444/
## issuer ##
#
# This value will be used as the "issuer" in access and ID tokens. It must be specified and using HTTPS protocol, unless --dangerous-force-http is set. This should typically be equal to the public value.
#
# Examples:
# - https://localhost:4444/
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export URLS_SELF_ISSUER=<value>
# - Windows Command Line (CMD):
# > set URLS_SELF_ISSUER=<value>
#
issuer: https://localhost:4444/
2020-06-17 13:17:15 +02:00
## strategies ##
#
strategies:
## access_token ##
#
# Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens
#
2021-09-13 12:11:40 +02:00
# Default value: opaque
#
# One of:
# - opaque
# - jwt
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export STRATEGIES_ACCESS_TOKEN=<value>
# - Windows Command Line (CMD):
# > set STRATEGIES_ACCESS_TOKEN=<value>
#
access_token: opaque
2021-09-13 12:11:40 +02:00
## scope ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Default value: wildcard
#
# One of:
# - exact
# - wildcard
# - DEPRECATED_HIERARCHICAL_SCOPE_STRATEGY
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export STRATEGIES_SCOPE=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set STRATEGIES_SCOPE=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
scope: exact
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## ttl ##
#
# Configures time to live.
#
ttl:
2020-06-17 13:17:15 +02:00
## access_token ##
#
# Configures how long access tokens are valid.
#
# Default value: 1h
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TTL_ACCESS_TOKEN=<value>
# - Windows Command Line (CMD):
# > set TTL_ACCESS_TOKEN=<value>
#
access_token: 1h
## refresh_token ##
#
# Configures how long refresh tokens are valid. Set to -1 for refresh tokens to never expire.
#
# Default value: 720h
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TTL_REFRESH_TOKEN=<value>
# - Windows Command Line (CMD):
# > set TTL_REFRESH_TOKEN=<value>
#
refresh_token: 1h
2021-09-13 12:11:40 +02:00
## id_token ##
#
# Configures how long id tokens are valid.
#
# Default value: 1h
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TTL_ID_TOKEN=<value>
# - Windows Command Line (CMD):
# > set TTL_ID_TOKEN=<value>
#
id_token: 1h
## auth_code ##
#
# Configures how long auth codes are valid.
#
# Default value: 10m
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TTL_AUTH_CODE=<value>
# - Windows Command Line (CMD):
# > set TTL_AUTH_CODE=<value>
#
auth_code: 1h
## login_consent_request ##
#
# Configures how long a user login and consent flow may take.
#
# Default value: 30m
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TTL_LOGIN_CONSENT_REQUEST=<value>
# - Windows Command Line (CMD):
# > set TTL_LOGIN_CONSENT_REQUEST=<value>
#
login_consent_request: 1h
## oauth2 ##
#
oauth2:
## session ##
#
session:
## Encrypt OAuth2 Session ##
#
# If set to true (default) ORY Hydra encrypt OAuth2 and OpenID Connect session data using AES-GCM and the system secret before persisting it in the database.
#
# Default value: true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export OAUTH2_SESSION_ENCRYPT_AT_REST=<value>
# - Windows Command Line (CMD):
# > set OAUTH2_SESSION_ENCRYPT_AT_REST=<value>
#
encrypt_at_rest: false
## include_legacy_error_fields ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Set this to true if you want to include the `error_hint` and `error_debug` legacy fields in error responses. We recommend to set this to `false` unless you have clients using these fields.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Default value: false
#
# Examples:
# - true
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export OAUTH2_INCLUDE_LEGACY_ERROR_FIELDS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set OAUTH2_INCLUDE_LEGACY_ERROR_FIELDS=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
include_legacy_error_fields: true
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## exclude_not_before_claim ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Set to true if you want to exclude claim `nbf (not before)` part of access token.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Default value: false
#
# Examples:
# - true
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export OAUTH2_EXCLUDE_NOT_BEFORE_CLAIM=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set OAUTH2_EXCLUDE_NOT_BEFORE_CLAIM=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
exclude_not_before_claim: true
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## allowed_top_level_claims ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# A list of custom claims which are allowed to be added top level to the Access Token. They cannot override reserved claims.
2020-06-17 13:17:15 +02:00
#
# Examples:
2021-09-13 12:11:40 +02:00
# - - username
# - email
# - user_uuid
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
allowed_top_level_claims:
- username
- email
- user_uuid
2020-06-17 13:17:15 +02:00
## hashers ##
#
# Configures hashing algorithms. Supports only BCrypt at the moment.
#
hashers:
## bcrypt ##
#
# Configures the BCrypt hashing algorithm used for hashing Client Secrets.
#
bcrypt:
## cost ##
#
# Sets the BCrypt cost. The higher the value, the more CPU time is being used to generate hashes.
#
# Default value: 10
#
2021-09-13 12:11:40 +02:00
# Minimum value: 4
#
# Maximum value: 31
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export OAUTH2_HASHERS_BCRYPT_COST=<value>
# - Windows Command Line (CMD):
# > set OAUTH2_HASHERS_BCRYPT_COST=<value>
#
2021-09-13 12:11:40 +02:00
cost: 4
2020-06-17 13:17:15 +02:00
## pkce ##
#
pkce:
2021-09-13 12:11:40 +02:00
## enforced_for_public_clients ##
#
# Sets whether PKCE should be enforced for public clients.
#
# Examples:
# - true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export OAUTH2_PKCE_ENFORCED_FOR_PUBLIC_CLIENTS=<value>
# - Windows Command Line (CMD):
# > set OAUTH2_PKCE_ENFORCED_FOR_PUBLIC_CLIENTS=<value>
#
enforced_for_public_clients: true
2020-06-17 13:17:15 +02:00
## enforced ##
#
# Sets whether PKCE should be enforced for all clients.
#
# Examples:
# - true
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export OAUTH2_PKCE_ENFORCED=<value>
# - Windows Command Line (CMD):
# > set OAUTH2_PKCE_ENFORCED=<value>
#
enforced: true
2021-09-13 12:11:40 +02:00
## client_credentials ##
#
client_credentials:
## default_grant_allowed_scope ##
#
# Defines how scopes are added if the request doesn't contains any scope
#
# Examples:
# - false
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export OAUTH2_CLIENT_CREDENTIALS_DEFAULT_GRANT_ALLOWED_SCOPE=<value>
# - Windows Command Line (CMD):
# > set OAUTH2_CLIENT_CREDENTIALS_DEFAULT_GRANT_ALLOWED_SCOPE=<value>
#
default_grant_allowed_scope: false
## expose_internal_errors ##
#
# Set this to true if you want to share error debugging information with your OAuth 2.0 clients. Keep in mind that debug information is very valuable when dealing with errors, but might also expose database error codes and similar errors.
#
# Default value: false
#
# Examples:
# - true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export OAUTH2_EXPOSE_INTERNAL_ERRORS=<value>
# - Windows Command Line (CMD):
# > set OAUTH2_EXPOSE_INTERNAL_ERRORS=<value>
#
expose_internal_errors: true
2020-06-17 13:17:15 +02:00
## secrets ##
#
# The secrets section configures secrets used for encryption and signing of several systems. All secrets can be rotated, for more information on this topic go to: https://www.ory.sh/docs/hydra/advanced#rotation-of-hmac-token-signing-and-database-and-cookie-encryption-keys
#
secrets:
2021-09-13 12:11:40 +02:00
## cookie ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# A secret that is used to encrypt cookie sessions. Defaults to secrets.system. It is recommended to use a separate secret in production. The first item in the list is used for signing and encryption. The whole list is used for verifying signatures and decryption.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - - this-is-the-primary-secret
# - this-is-an-old-secret
# - this-is-another-old-secret
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SECRETS_COOKIE=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SECRETS_COOKIE=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
cookie:
2020-06-17 13:17:15 +02:00
- this-is-the-primary-secret
- this-is-an-old-secret
- this-is-another-old-secret
2021-09-13 12:11:40 +02:00
## system ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# The system secret must be at least 16 characters long. If none is provided, one will be generated. They key is used to encrypt sensitive data using AES-GCM (256 bit) and validate HMAC signatures. The first item in the list is used for signing and encryption. The whole list is used for verifying signatures and decryption.
2020-06-17 13:17:15 +02:00
#
# Examples:
# - - this-is-the-primary-secret
# - this-is-an-old-secret
# - this-is-another-old-secret
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export SECRETS_SYSTEM=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set SECRETS_SYSTEM=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
system:
2020-06-17 13:17:15 +02:00
- this-is-the-primary-secret
- this-is-an-old-secret
- this-is-another-old-secret
## profiling ##
#
# Enables profiling if set. For more details on profiling, head over to: https://blog.golang.org/profiling-go-programs
#
2021-09-13 12:11:40 +02:00
# One of:
# - cpu
# - mem
#
2020-06-17 13:17:15 +02:00
# Examples:
# - cpu
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export PROFILING=<value>
# - Windows Command Line (CMD):
# > set PROFILING=<value>
#
profiling: cpu
## tracing ##
#
# ORY Hydra supports distributed tracing.
#
tracing:
## service_name ##
#
# Specifies the service name to use on the tracer.
#
# Examples:
# - ORY Hydra
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_SERVICE_NAME=<value>
# - Windows Command Line (CMD):
# > set TRACING_SERVICE_NAME=<value>
#
service_name: ORY Hydra
## providers ##
#
providers:
2021-09-13 12:11:40 +02:00
## zipkin ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Configures the zipkin tracing backend.
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# Examples:
# - server_url: http://localhost:9411/api/v2/spans
#
zipkin:
## server_url ##
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
# The address of Zipkin server where spans should be sent to.
2020-06-17 13:17:15 +02:00
#
# Set this value using environment variables on
# - Linux/macOS:
2021-09-13 12:11:40 +02:00
# $ export TRACING_PROVIDERS_ZIPKIN_SERVER_URL=<value>
2020-06-17 13:17:15 +02:00
# - Windows Command Line (CMD):
2021-09-13 12:11:40 +02:00
# > set TRACING_PROVIDERS_ZIPKIN_SERVER_URL=<value>
2020-06-17 13:17:15 +02:00
#
2021-09-13 12:11:40 +02:00
server_url: http://localhost:9411/api/v2/spans
2020-06-17 13:17:15 +02:00
2021-09-13 12:11:40 +02:00
## jaeger ##
#
# Configures the jaeger tracing backend.
#
jaeger:
2020-06-17 13:17:15 +02:00
## propagation ##
#
# The tracing header format
#
# Examples:
# - jaeger
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDERS_JAEGER_PROPAGATION=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_JAEGER_PROPAGATION=<value>
#
propagation: jaeger
2021-09-13 12:11:40 +02:00
## max_tag_value_length ##
#
# The value passed to the max tag value length that has been configured.
#
# Minimum value: 0
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDERS_JAEGER_MAX_TAG_VALUE_LENGTH=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_JAEGER_MAX_TAG_VALUE_LENGTH=<value>
#
max_tag_value_length: 0
2020-06-17 13:17:15 +02:00
## sampling ##
#
# Examples:
# - type: const
# value: 1
# server_url: http://localhost:5778/sampling
2021-09-13 12:11:40 +02:00
#
2020-06-17 13:17:15 +02:00
sampling:
## type ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDERS_JAEGER_SAMPLING_TYPE=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_JAEGER_SAMPLING_TYPE=<value>
#
type: const
## value ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDERS_JAEGER_SAMPLING_VALUE=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_JAEGER_SAMPLING_VALUE=<value>
#
value: 1
## server_url ##
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL=<value>
#
server_url: http://localhost:5778/sampling
2021-09-13 12:11:40 +02:00
## local_agent_address ##
#
# The address of the jaeger-agent where spans should be sent to.
#
# Examples:
# - 127.0.0.1:6831
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS=<value>
#
local_agent_address: 127.0.0.1:6831
## provider ##
#
# Set this to the tracing backend you wish to use. Supports Jaeger, Zipkin DataDog, Elastic APM and Instana. If omitted or empty, tracing will be disabled. Use environment variables to configure DataDog (see https://docs.datadoghq.com/tracing/setup/go/#configuration).
#
# One of:
# - jaeger
# - zipkin
# - datadog
# - elastic-apm
# - instana
#
# Examples:
# - jaeger
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export TRACING_PROVIDER=<value>
# - Windows Command Line (CMD):
# > set TRACING_PROVIDER=<value>
#
provider: jaeger
## sqa ##
#
# Software Quality Assurance telemetry configuration section
#
# Examples:
# - opt_out: true
#
sqa:
## opt_out ##
#
# Disables anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa
#
# Default value: false
#
# Examples:
# - true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SQA_OPT_OUT=<value>
# - Windows Command Line (CMD):
# > set SQA_OPT_OUT=<value>
#
opt_out: true
## The Hydra version this config is written for. ##
#
# SemVer according to https://semver.org/ prefixed with `v` as in our releases.
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export VERSION=<value>
# - Windows Command Line (CMD):
# > set VERSION=<value>
#
version: v1.10.6
## cgroups ##
#
# ORY Hydra can respect Linux container CPU quota
#
cgroups:
## v1 ##
#
# Configures parameters using cgroups v1 hierarchy
#
v1:
## auto_max_procs_enabled ##
#
# Set GOMAXPROCS automatically according to cgroups limits
#
# Default value: false
#
# Examples:
# - true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export CGROUPS_V1_AUTO_MAX_PROCS_ENABLED=<value>
# - Windows Command Line (CMD):
# > set CGROUPS_V1_AUTO_MAX_PROCS_ENABLED=<value>
#
auto_max_procs_enabled: true
## log ##
#
# Configures the logger
#
log:
## leak_sensitive_values ##
#
# Logs sensitive values such as cookie and URL parameter.
#
# Default value: false
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export LOG_LEAK_SENSITIVE_VALUES=<value>
# - Windows Command Line (CMD):
# > set LOG_LEAK_SENSITIVE_VALUES=<value>
#
leak_sensitive_values: false
## format ##
#
# Sets the log format.
#
# Default value: text
#
# One of:
# - json
# - json_pretty
# - text
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export LOG_FORMAT=<value>
# - Windows Command Line (CMD):
# > set LOG_FORMAT=<value>
#
format: text
## level ##
#
# Sets the log level.
#
# Default value: info
#
# One of:
# - panic
# - fatal
# - error
# - warn
# - info
# - debug
# - trace
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export LOG_LEVEL=<value>
# - Windows Command Line (CMD):
# > set LOG_LEVEL=<value>
#
level: error