aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLUXEY Adrien <adrien.luxey@inria.fr>2020-12-28 12:04:08 +0100
committerLUXEY Adrien <adrien.luxey@inria.fr>2020-12-28 12:04:08 +0100
commita5a56b6f70bd5b445c3d10d0c5a99011a8bcdd1d (patch)
tree0d635aa9c1f295ea8f248e3d129d916bbc71723b
parent7508a10a718f9be8eeef1fcf66fad855ce0654c1 (diff)
downloadinfrastructure-a5a56b6f70bd5b445c3d10d0c5a99011a8bcdd1d.tar.gz
infrastructure-a5a56b6f70bd5b445c3d10d0c5a99011a8bcdd1d.zip
wrote a redirection to deuxfleurs.fr in Treafik config's comments
-rw-r--r--app/deployment/web_static.hcl7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/deployment/web_static.hcl b/app/deployment/web_static.hcl
index a02d48b..01de23e 100644
--- a/app/deployment/web_static.hcl
+++ b/app/deployment/web_static.hcl
@@ -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"