mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
91c0c81818
* refactor(suites): stop integration tests on first failure * refactor(suites): remove additional nginx instance * refactor(suites): log relevant containers * refactor(suites): add traefik2 logs to stdout * refactor(suites): explicitly enable traefik for tests * refactor(suites): remove redis restart and duplicate pathprefix tests * ci(buildkite): allow manual retry on integration tests
25 lines
1.3 KiB
YAML
25 lines
1.3 KiB
YAML
---
|
|
version: '3'
|
|
services:
|
|
nginx-backend:
|
|
image: nginx:alpine
|
|
labels:
|
|
# 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
|
|
- 'traefik.enable=true'
|
|
- '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'
|
|
volumes:
|
|
- ./example/compose/nginx/backend/html:/usr/share/nginx/html
|
|
- ./example/compose/nginx/backend/nginx.conf:/etc/nginx/nginx.conf
|
|
networks:
|
|
- authelianet
|
|
...
|