added CORS dev config
This commit is contained in:
parent
ab36ac80ed
commit
c44da161b1
@ -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",
|
||||
"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",
|
||||
|
Loading…
Reference in New Issue
Block a user