2021-04-11 03:51:00 +07:00
|
|
|
---
|
2020-01-19 17:06:37 +07:00
|
|
|
version: '3'
|
2018-03-04 18:29:11 +07:00
|
|
|
services:
|
|
|
|
nginx-backend:
|
2020-05-21 11:35:22 +07:00
|
|
|
image: nginx:alpine
|
2019-04-11 02:27:18 +07:00
|
|
|
labels:
|
2021-04-11 03:51:00 +07:00
|
|
|
# Traefik 1.x
|
|
|
|
- 'traefik.frontend.rule=Host:home.example.com,public.example.com,secure.example.com,admin.example.com,singlefactor.example.com' # yamllint disable-line rule:line-length
|
|
|
|
- 'traefik.frontend.auth.forward.address=https://authelia-backend:9091/api/verify?rd=https://login.example.com:8080' # yamllint disable-line rule:line-length
|
|
|
|
- 'traefik.frontend.auth.forward.tls.insecureSkipVerify=true'
|
|
|
|
- 'traefik.frontend.auth.forward.trustForwardHeader=true'
|
|
|
|
- 'traefik.frontend.auth.forward.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email'
|
|
|
|
# Traefik 2.x
|
2022-05-02 11:50:37 +07:00
|
|
|
- 'traefik.enable=true'
|
2021-04-11 03:51:00 +07:00
|
|
|
- 'traefik.http.routers.protectedapps.rule=Host(`home.example.com`,`public.example.com`,`secure.example.com`,`admin.example.com`,`singlefactor.example.com`)' # yamllint disable-line rule:line-length
|
|
|
|
- 'traefik.http.routers.protectedapps.entrypoints=https'
|
|
|
|
- 'traefik.http.routers.protectedapps.tls=true'
|
|
|
|
- 'traefik.http.routers.protectedapps.middlewares=authelia@docker'
|
2020-05-21 11:35:22 +07:00
|
|
|
volumes:
|
|
|
|
- ./example/compose/nginx/backend/html:/usr/share/nginx/html
|
|
|
|
- ./example/compose/nginx/backend/nginx.conf:/etc/nginx/nginx.conf
|
2018-03-04 18:29:11 +07:00
|
|
|
networks:
|
2021-04-11 03:51:00 +07:00
|
|
|
- authelianet
|
|
|
|
...
|