2020-01-19 10:06:37 +00:00
|
|
|
version: '3'
|
2018-03-04 11:29:11 +00:00
|
|
|
services:
|
|
|
|
nginx-backend:
|
2020-05-21 04:35:22 +00:00
|
|
|
image: nginx:alpine
|
2019-04-10 19:27:18 +00:00
|
|
|
labels:
|
2020-01-19 10:06:37 +00:00
|
|
|
- 'traefik.frontend.rule=Host:home.example.com,public.example.com,secure.example.com,admin.example.com,singlefactor.example.com' # Traefik 1.x
|
2020-04-13 23:57:28 +00:00
|
|
|
- 'traefik.frontend.auth.forward.address=https://authelia-backend:9091/api/verify?rd=https://login.example.com:8080/' # Traefik 1.x
|
2020-01-19 10:06:37 +00:00
|
|
|
- 'traefik.frontend.auth.forward.tls.insecureSkipVerify=true' # Traefik 1.x
|
2020-04-11 01:49:54 +00:00
|
|
|
- 'traefik.frontend.auth.forward.trustForwardHeader=true' # Traefik 1.x
|
|
|
|
- 'traefik.frontend.auth.forward.authResponseHeaders=Remote-User,Remote-Groups' # Traefik 1.x
|
2020-01-19 10:06:37 +00:00
|
|
|
- 'traefik.http.routers.protectedapps.rule=Host(`home.example.com`, `public.example.com`, `secure.example.com`, `admin.example.com`, `singlefactor.example.com`)' # Traefik 2.x
|
|
|
|
- 'traefik.http.routers.protectedapps.entrypoints=https' # Traefik 2.x
|
|
|
|
- 'traefik.http.routers.protectedapps.tls=true' # Traefik 2.x
|
|
|
|
- 'traefik.http.routers.protectedapps.middlewares=authelia' # Traefik 2.x
|
2020-04-13 23:57:28 +00:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.address=https://authelia-backend:9091/api/verify?rd=https://login.example.com:8080/' # Traefik 2.x
|
2020-04-11 01:49:54 +00:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.tls.insecureSkipVerify=true' # Traefik 2.x
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true' # Traefik 2.x
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User, Remote-Groups' # Traefik 2.x
|
2020-05-21 04:35:22 +00:00
|
|
|
volumes:
|
|
|
|
- ./example/compose/nginx/backend/html:/usr/share/nginx/html
|
|
|
|
- ./example/compose/nginx/backend/nginx.conf:/etc/nginx/nginx.conf
|
2018-03-04 11:29:11 +00:00
|
|
|
networks:
|
2020-01-19 10:06:37 +00:00
|
|
|
- authelianet
|