Use env variables to configure secrets in Standalone suite.

This commit is contained in:
Clement Michaud 2020-01-21 23:07:11 +01:00 committed by Amir Zarrinkafsh
parent cab97d5f2f
commit bb7781fd2b
2 changed files with 3 additions and 3 deletions

View File

@ -8,14 +8,11 @@ logs_level: debug
default_redirection_url: https://home.example.com:8080/ default_redirection_url: https://home.example.com:8080/
jwt_secret: very_important_secret
authentication_backend: authentication_backend:
file: file:
path: /var/lib/authelia/users.yml path: /var/lib/authelia/users.yml
session: session:
secret: unsecure_session_secret
domain: example.com domain: example.com
expiration: 3600 # 1 hour expiration: 3600 # 1 hour
inactivity: 300 # 5 minutes inactivity: 300 # 5 minutes

View File

@ -1,6 +1,9 @@
version: '3' version: '3'
services: services:
authelia-backend: authelia-backend:
environment:
- AUTHELIA_JWT_SECRET=very_important_secret
- AUTHELIA_SESSION_SECRET=unsecure_session_secret
volumes: volumes:
- './internal/suites/Standalone/configuration.yml:/etc/authelia/configuration.yml:ro' - './internal/suites/Standalone/configuration.yml:/etc/authelia/configuration.yml:ro'
- './internal/suites/Standalone/users.yml:/var/lib/authelia/users.yml' - './internal/suites/Standalone/users.yml:/var/lib/authelia/users.yml'