traefik/integration/fixtures/headers/cors.toml

33 lines
672 B
TOML
Raw Normal View History

[global]
2019-07-01 09:30:05 +00:00
checkNewVersion = false
sendAnonymousUsage = false
[log]
2019-07-01 09:30:05 +00:00
level = "DEBUG"
2019-04-02 08:40:04 +00:00
[entryPoints]
[entryPoints.web]
2019-04-02 08:40:04 +00:00
address = ":8000"
[providers]
2019-07-01 09:30:05 +00:00
[providers.file]
## dynamic configuration ##
2019-04-02 08:40:04 +00:00
[http.routers]
[http.routers.router1]
rule = "Host(`test.localhost`)"
service = "service1"
[http.middlewares]
2019-07-01 09:30:05 +00:00
[http.middlewares.cors.headers]
accessControlAllowMethods= ["GET", "OPTIONS", "PUT"]
accessControlAllowOrigin = "origin-list-or-null"
accessControlMaxAge = 100
addVaryHeader = true
2019-04-02 08:40:04 +00:00
[http.services]
2019-07-01 09:30:05 +00:00
[http.services.service1.loadBalancer]
[[http.services.service1.loadBalancer.servers]]
2019-04-02 08:40:04 +00:00
url = "http://172.17.0.2:80"