regex is hard
This commit is contained in:
parent
5de8e05793
commit
df70ef44c8
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ job "atlas" {
|
|||
"traefik.http.routers.nginx-atlas.tls.certresolver=lets-encrypt",
|
||||
"traefik.http.routers.nginx-atlas.middlewares=redirect-user-web",
|
||||
"traefik.http.middlewares.redirect-user-web.redirectregex.permanent=true",
|
||||
"traefik.http.middlewares.redirect-user-web.redirectregex.regex=https://redbrick\\.dcu\\.ie/~([^/]*)(/)?(.*)?",
|
||||
"traefik.http.middlewares.redirect-user-web.redirectregex.regex=https://redbrick\\.dcu\\.ie/~([^/]*)/?([^/].*)?",
|
||||
"traefik.http.middlewares.redirect-user-web.redirectregex.replacement=https://$1.redbrick.dcu.ie/$2",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue