master #30
1 changed files with 6 additions and 1 deletions
|
@ -38,8 +38,13 @@ EOH
|
|||
"traefik.enable=true",
|
||||
"traefik.frontend.entryPoints=https,http",
|
||||
"traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr,deuxfleurs.org,www.deuxfleurs.org;PathPrefix:/",
|
||||
# ideally we would have a rewrite regex: ^https?://(www\.deuxfleurs\.fr|deuxfleurs\.org|www\.deuxfleurs\.fr)(.*)$
|
||||
"traefik.frontend.priority=10"
|
||||
# Ideally we would have a rewrite regex like this https://regex101.com/r/WHrABU/1
|
||||
# See how it does not handle "http://deuxfleurs.fr/"? Not a big deal since HTTPS is redirected somewhere else
|
||||
#"traefik.frontend.redirect.regex=^https?://(www\.deuxfleurs\.fr|deuxfleurs\.org|www\.deuxfleurs\.org)(.*)$",
|
||||
#"traefik.frontend.redirect.replacement=https://deuxfleurs.fr/$${2}",
|
||||
# Only set permanent redirect when it is guaranteed to work
|
||||
#"traefik.frontend.redirect.permanent=true",
|
||||
]
|
||||
port = "deuxfleurs_port"
|
||||
address_mode = "host"
|
||||
|
|
Reference in a new issue