2019-11-02 14:32:58 +00:00
|
|
|
version: '3'
|
2017-10-14 13:04:43 +00:00
|
|
|
services:
|
|
|
|
httpbin:
|
|
|
|
image: citizenstig/httpbin
|
|
|
|
networks:
|
2019-01-27 14:54:29 +00:00
|
|
|
- authelianet
|
2020-05-06 01:50:37 +00: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 11:38:08 +00:00
|
|
|
- 'traefik.frontend.auth.forward.authResponseHeaders=Remote-User, Remote-Groups, Remote-Name, Remote-Email'
|
2020-05-06 01:50:37 +00: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 11:55:44 +00:00
|
|
|
- 'traefik.http.routers.httpbin.middlewares=authelia@docker'
|