adjust Traefik header for legacy Traefik pre-v2
Our modern infrastructure is not yet ready for this, apparently.
This commit is contained in:
parent
64ccd0a51b
commit
452c292570
@ -9,11 +9,12 @@ services:
|
||||
- traefik.port=3000
|
||||
- traefik.frontend.passHostHeader=true
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.testheader.headers.accesscontrolallowmethods=GET,OPTIONS,PUT
|
||||
- traefik.http.middlewares.testheader.headers.accesscontrolallowheaders=*
|
||||
- traefik.http.middlewares.testheader.headers.accesscontrolalloworiginlist=https://chaospott.de
|
||||
- traefik.http.middlewares.testheader.headers.accesscontrolmaxage=100
|
||||
- traefik.http.middlewares.testheader.headers.addvaryheader=true
|
||||
- traefik.frontend.headers.customResponseHeaders=Access-Control-Allow-Origin:*
|
||||
# NOTE: This is for Traefik v2, apparently.
|
||||
- traefik.http.middlewares.cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT
|
||||
- traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=https://chaospott.de
|
||||
- traefik.http.middlewares.cors.headers.accesscontrolmaxage=100
|
||||
- traefik.http.middlewares.cors.headers.addvaryheader=true
|
||||
networks:
|
||||
- extern
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user