2020-01-19 17:06:37 +07:00
|
|
|
version: '3'
|
2018-03-04 18:29:11 +07:00
|
|
|
services:
|
|
|
|
nginx-backend:
|
2019-11-30 23:49:52 +07:00
|
|
|
build:
|
|
|
|
context: example/compose/nginx/backend
|
2019-04-11 02:27:18 +07:00
|
|
|
labels:
|
2020-01-19 17:06:37 +07:00
|
|
|
- 'traefik.frontend.rule=Host:home.example.com,public.example.com,secure.example.com,admin.example.com,singlefactor.example.com' # Traefik 1.x
|
|
|
|
- 'traefik.frontend.auth.forward.address=http://authelia-backend:9091/api/verify?rd=https://login.example.com:8080/' # Traefik 1.x
|
|
|
|
- 'traefik.frontend.auth.forward.tls.insecureSkipVerify=true' # Traefik 1.x
|
|
|
|
- '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
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardAuth.address=http://authelia-backend:9091/api/verify?rd=https://login.example.com:8080/' # Traefik 2.x
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardAuth.tls.insecureSkipVerify=true' # Traefik 2.x
|
2018-03-04 18:29:11 +07:00
|
|
|
networks:
|
2020-01-19 17:06:37 +07:00
|
|
|
- authelianet
|