f* CORS, define it on app level

This commit is contained in:
Piotr Biernat 2022-12-24 06:03:21 +01:00
parent 31f6a7d7e6
commit 867e7d57b7

View File

@ -143,7 +143,7 @@ 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",