changes for Authelia setup
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*/secrets
|
secrets/
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
secrets:
|
||||||
|
STORAGE_ENCRYPTION_KEY:
|
||||||
|
file: './secrets/authelia_db_encryption_key'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
authelia:
|
authelia:
|
||||||
image: authelia/authelia:latest
|
image: authelia/authelia:latest
|
||||||
@ -11,8 +15,10 @@ services:
|
|||||||
- ./db:/config/db
|
- ./db:/config/db
|
||||||
ports:
|
ports:
|
||||||
- '9091:9091'
|
- '9091:9091'
|
||||||
|
secrets: ['STORAGE_ENCRYPTION_KEY']
|
||||||
environment:
|
environment:
|
||||||
- TZ=Etc/UTC
|
TZ: 'Etc/UTC'
|
||||||
|
AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: '/run/secrets/STORAGE_ENCRYPTION_KEY'
|
||||||
|
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
host: 0.0.0.0
|
address: 0.0.0.0:9091
|
||||||
port: 9091
|
|
||||||
endpoints:
|
endpoints:
|
||||||
authz:
|
authz:
|
||||||
forward-auth:
|
forward-auth:
|
||||||
@ -11,7 +10,7 @@ log:
|
|||||||
|
|
||||||
# --- Storage ---
|
# --- Storage ---
|
||||||
storage:
|
storage:
|
||||||
sqlite:
|
local:
|
||||||
path: /config/db/authelia.sqlite.db
|
path: /config/db/authelia.sqlite.db
|
||||||
|
|
||||||
# --- Authentication ---
|
# --- Authentication ---
|
||||||
@ -35,7 +34,7 @@ session:
|
|||||||
cookies:
|
cookies:
|
||||||
- domain: 'saljic.me'
|
- domain: 'saljic.me'
|
||||||
authelia_url: 'https://auth.saljic.me'
|
authelia_url: 'https://auth.saljic.me'
|
||||||
default_redirection_url: 'https://auth.saljic.me'
|
default_redirection_url: 'https://saljic.me'
|
||||||
# name: authelia_session
|
# name: authelia_session
|
||||||
# expiration: 1h
|
# expiration: 1h
|
||||||
# inactivity: 5m
|
# inactivity: 5m
|
||||||
|
|||||||
@ -21,3 +21,14 @@ ha.saljic.me {
|
|||||||
tagebuch.saljic.me {
|
tagebuch.saljic.me {
|
||||||
reverse_proxy 10.10.10.6:2283
|
reverse_proxy 10.10.10.6:2283
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# --- default ---
|
||||||
|
saljic.me {
|
||||||
|
header Content-Type text/html
|
||||||
|
respond <<HTML
|
||||||
|
<html>
|
||||||
|
<head><title>saljic.me</title></head>
|
||||||
|
<body>Hello there</body>
|
||||||
|
</html>
|
||||||
|
HTML 200
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user