Update Authelia configuration to use environment variables for domains and secrets
This commit is contained in:
@@ -65,15 +65,15 @@ access_control:
|
||||
- '172.16.0.0/12'
|
||||
- '192.168.0.0/16'
|
||||
rules:
|
||||
- domain: 'auth.gate.3launchpad.com'
|
||||
- domain: 'auth.gate.${DOMAIN}'
|
||||
policy: 'bypass'
|
||||
- domain:
|
||||
- 'traefik.gate.3launchpad.com'
|
||||
- 'portainer.gate.3launchpad.com'
|
||||
- 'traefik.gate.${DOMAIN}'
|
||||
- 'portainer.gate.${DOMAIN}'
|
||||
policy: 'two_factor'
|
||||
subject:
|
||||
- 'group:admins'
|
||||
- domain: '*.gate.3launchpad.com'
|
||||
- domain: '*.gate.${DOMAIN}'
|
||||
policy: 'one_factor'
|
||||
|
||||
session:
|
||||
@@ -83,9 +83,9 @@ session:
|
||||
inactivity: 5m
|
||||
remember_me: 1M
|
||||
cookies:
|
||||
- domain: 'gate.3launchpad.com'
|
||||
authelia_url: 'https://auth.gate.3launchpad.com'
|
||||
default_redirection_url: 'https://gate.3launchpad.com'
|
||||
- domain: 'gate.${DOMAIN}'
|
||||
authelia_url: 'https://auth.gate.${DOMAIN}'
|
||||
default_redirection_url: 'https://gate.${DOMAIN}'
|
||||
|
||||
regulation:
|
||||
max_retries: 3
|
||||
|
||||
@@ -118,6 +118,10 @@ services:
|
||||
- ./authelia:/config
|
||||
environment:
|
||||
TZ: "${TZ}"
|
||||
AUTHELIA_JWT_SECRET: "${AUTHELIA_JWT_SECRET}"
|
||||
AUTHELIA_SESSION_SECRET: "${AUTHELIA_SESSION_SECRET}"
|
||||
AUTHELIA_STORAGE_ENCRYPTION_KEY: "${AUTHELIA_STORAGE_ENCRYPTION_KEY}"
|
||||
DOMAIN: "${DOMAIN}"
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.authelia.rule=Host(`auth.gate.${DOMAIN}`)
|
||||
|
||||
Reference in New Issue
Block a user