authelia and whoami update

This commit is contained in:
xcad2k 2022-01-01 15:21:03 +01:00
parent 6739050ff9
commit d0e48d571d
5 changed files with 31 additions and 6 deletions

View File

@ -0,0 +1 @@
# TODO: ...

View File

@ -0,0 +1 @@
# TODO: ...

View File

@ -1,5 +1,9 @@
version: '3'
networks:
frontend:
external: true
services:
authelia:
image: authelia/authelia
@ -8,11 +12,10 @@ services:
- /etc/authelia:/config
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.authelia.rule=Host(`authelia.example.com`)'
- 'traefik.http.routers.authelia.entrypoints=https'
- 'traefik.http.routers.authelia.rule=Host(`your-domain.com`)'
- 'traefik.http.routers.authelia.entrypoints=websecure'
- 'traefik.http.routers.authelia.tls=true'
# - 'traefik.http.routers.authelia.tls.certresolver=letsencrypt'
- 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://authelia.example.com' # yamllint disable-line rule:line-length
- 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://your-domain.com' # yamllint disable-line rule:line-length
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true'
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email' # yamllint disable-line rule:line-length
expose:
@ -20,3 +23,4 @@ services:
restart: unless-stopped
healthcheck:
disable: true

View File

@ -0,0 +1 @@
# TODO: ...

View File

@ -0,0 +1,18 @@
version: '3'
networks:
frontend:
external: true
services:
whoami:
image: traefik/whoami
container_name: whoami
networks:
- frontend
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.public.rule=Host(`your-domain.com`)'
- 'traefik.http.routers.public.entrypoints=websecure'
- 'traefik.http.routers.public.tls=true'
restart: unless-stopped