Initial commit: working state
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
networks:
|
||||
proxy_tier:
|
||||
name: proxy_tier
|
||||
external: true
|
||||
|
||||
services:
|
||||
authelia:
|
||||
image: authelia/authelia:latest
|
||||
container_name: authelia
|
||||
volumes:
|
||||
- ./config:/config
|
||||
networks:
|
||||
- proxy_tier
|
||||
environment:
|
||||
- TZ=UTC
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# The URL where you will actually log in
|
||||
- "traefik.http.routers.authelia.rule=Host(`auth.quangkhai.ch`)"
|
||||
- "traefik.http.routers.authelia.entrypoints=websecure"
|
||||
- "traefik.http.routers.authelia.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.authelia.loadbalancer.server.port=9091"
|
||||
|
||||
# --- ADD THESE THREE LINES BELOW ---
|
||||
- "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.quangkhai.ch/"
|
||||
- "traefik.http.middlewares.authelia-auth.forwardauth.trustForwardHeader=true"
|
||||
- "traefik.http.middlewares.authelia-auth.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email"
|
||||
Reference in New Issue
Block a user