diff --git a/authelia/configuration.yml b/authelia/configuration.yml index 2d62617..464a57f 100644 --- a/authelia/configuration.yml +++ b/authelia/configuration.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index c4e61e4..5fc4d09 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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}`)