2021-02-10 21:14:05 +05:30
|
|
|
{{- /* NOTE: This configuration file is an example and exists only for development purposes. */ -}}
|
|
|
|
{{- /* To find more about gomplate formatting, please visit its documentation site - https://docs.gomplate.ca/ */ -}}
|
2021-01-28 16:55:55 +05:30
|
|
|
issuer: {{ getenv "DEX_ISSUER" "http://127.0.0.1:5556/dex" }}
|
|
|
|
|
|
|
|
storage:
|
|
|
|
type: sqlite3
|
|
|
|
config:
|
2021-01-29 03:18:30 +05:30
|
|
|
file: {{ getenv "DEX_STORAGE_SQLITE3_CONFIG_FILE" "/var/dex/dex.db" }}
|
2021-01-28 16:55:55 +05:30
|
|
|
|
|
|
|
web:
|
|
|
|
{{- if getenv "DEX_WEB_HTTPS" "" }}
|
|
|
|
https: {{ .Env.DEX_WEB_HTTPS }}
|
2021-01-29 03:18:30 +05:30
|
|
|
tlsKey: {{ getenv "DEX_WEB_TLS_KEY" | required "$DEX_WEB_TLS_KEY in case of web.https is enabled" }}
|
|
|
|
tlsCert: {{ getenv "DEX_WEB_TLS_CERT" | required "$DEX_WEB_TLS_CERT in case of web.https is enabled" }}
|
2021-01-28 16:55:55 +05:30
|
|
|
{{- end }}
|
|
|
|
http: {{ getenv "DEX_WEB_HTTP" "0.0.0.0:5556" }}
|
|
|
|
|
2021-01-29 03:18:30 +05:30
|
|
|
{{- if getenv "DEX_TELEMETRY_HTTP" }}
|
2021-01-28 16:55:55 +05:30
|
|
|
telemetry:
|
|
|
|
http: {{ .Env.DEX_TELEMETRY_HTTP }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
expiry:
|
|
|
|
deviceRequests: {{ getenv "DEX_EXPIRY_DEVICE_REQUESTS" "5m" }}
|
|
|
|
signingKeys: {{ getenv "DEX_EXPIRY_SIGNING_KEYS" "6h" }}
|
|
|
|
idTokens: {{ getenv "DEX_EXPIRY_ID_TOKENS" "24h" }}
|
|
|
|
authRequests: {{ getenv "DEX_EXPIRY_AUTH_REQUESTS" "24h" }}
|
|
|
|
|
|
|
|
logger:
|
2021-01-29 03:18:30 +05:30
|
|
|
level: {{ getenv "DEX_LOG_LEVEL" "info" }}
|
|
|
|
format: {{ getenv "DEX_LOG_FORMAT" "text" }}
|
2021-01-28 16:55:55 +05:30
|
|
|
|
|
|
|
oauth2:
|
|
|
|
responseTypes: {{ getenv "DEX_OAUTH2_RESPONSE_TYPES" "[code]" }}
|
|
|
|
skipApprovalScreen: {{ getenv "DEX_OAUTH2_SKIP_APPROVAL_SCREEN" "false" }}
|
|
|
|
alwaysShowLoginScreen: {{ getenv "DEX_OAUTH2_ALWAYS_SHOW_LOGIN_SCREEN" "false" }}
|
|
|
|
{{- if getenv "DEX_OAUTH2_PASSWORD_CONNECTOR" "" }}
|
|
|
|
passwordConnector: {{ .Env.DEX_OAUTH2_PASSWORD_CONNECTOR }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
enablePasswordDB: {{ getenv "DEX_ENABLE_PASSWORD_DB" "true" }}
|
|
|
|
|
|
|
|
connectors:
|
2021-01-29 03:18:30 +05:30
|
|
|
{{- if getenv "DEX_CONNECTORS_ENABLE_MOCK" }}
|
2021-01-28 16:55:55 +05:30
|
|
|
- type: mockCallback
|
|
|
|
id: mock
|
|
|
|
name: Example
|
|
|
|
{{- end }}
|