changes for Authelia setup

This commit is contained in:
Amar Saljic
2025-10-26 12:45:33 +01:00
parent b5c0439b04
commit 9ef2ec345c
4 changed files with 22 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
.DS_Store .DS_Store
*/secrets secrets/

View File

@ -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:

View File

@ -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

View File

@ -20,4 +20,15 @@ ha.saljic.me {
# --- Immich --- # --- Immich ---
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
} }