added CORS dev config
This commit is contained in:
parent
867e7d57b7
commit
f5d75ae991
@ -143,11 +143,16 @@ func (s *Service) getTags() []string {
|
||||
"traefik.http.routers." + s.Name + ".entryPoints=https",
|
||||
"traefik.http.routers." + s.Name + ".tls=true",
|
||||
"traefik.http.routers." + s.Name + ".service=" + s.Name,
|
||||
"traefik.http.routers." + s.Name + ".middlewares=compress,requestid",
|
||||
"traefik.http.routers." + s.Name + ".middlewares=compress,requestid,cors",
|
||||
"traefik.http.services." + s.Name + ".loadbalancer.server.scheme=http",
|
||||
"traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port),
|
||||
"traefik.http.middlewares.compress.compress=true",
|
||||
"traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID",
|
||||
"traefik.http.middlewares.cors.headers.accesscontrolallowmethods=*",
|
||||
"traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*",
|
||||
// "traefik.http.middlewares.cors.headers.accessControlExposeHeaders=true",
|
||||
// "traefik.http.middlewares.cors.headers.accesscontrolmaxage=100",
|
||||
// "traefik.http.middlewares.cors.headers.addvaryheader=true",
|
||||
"traefik.tls.certificates.certfile=/certs/client.cert",
|
||||
"traefik.tls.certificates.keyfile=/certs/client.key",
|
||||
// "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false",
|
||||
|
Loading…
Reference in New Issue
Block a user