2019-11-02 21:32:58 +07:00
|
|
|
version: '3'
|
2017-10-14 20:04:43 +07:00
|
|
|
services:
|
|
|
|
httpbin:
|
|
|
|
image: citizenstig/httpbin
|
|
|
|
networks:
|
2019-01-27 21:54:29 +07:00
|
|
|
- authelianet
|
2020-05-06 08:50:37 +07:00
|
|
|
labels:
|
|
|
|
# Traefik 1.x
|
|
|
|
- 'traefik.frontend.rule=Host:public.example.com;Path:/headers'
|
|
|
|
- 'traefik.frontend.priority=120'
|
|
|
|
- 'traefik.frontend.auth.forward.address=https://authelia-backend:9091/api/verify?rd=https://login.example.com:8080/'
|
|
|
|
- 'traefik.frontend.auth.forward.tls.insecureSkipVerify=true'
|
|
|
|
- 'traefik.frontend.auth.forward.trustForwardHeader=true'
|
2020-10-26 18:38:08 +07:00
|
|
|
- 'traefik.frontend.auth.forward.authResponseHeaders=Remote-User, Remote-Groups, Remote-Name, Remote-Email'
|
2020-05-06 08:50:37 +07:00
|
|
|
# Traefik 2.x
|
|
|
|
- 'traefik.http.routers.httpbin.rule=Host(`public.example.com`) && Path(`/headers`)'
|
|
|
|
- 'traefik.http.routers.httpbin.priority=150'
|
|
|
|
- 'traefik.http.routers.httpbin.tls=true'
|
2020-05-27 18:55:44 +07:00
|
|
|
- 'traefik.http.routers.httpbin.middlewares=authelia@docker'
|