This commit is contained in:
Piotr Biernat 2022-12-24 08:33:09 +01:00
parent f5d75ae991
commit 31172dee69

View File

@ -143,13 +143,13 @@ 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,cors",
"traefik.http.routers." + s.Name + ".middlewares=compress,requestid",
"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.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",