1
0
Fork 0

webserver: Escape $ in traefik middleware

This commit is contained in:
Daniel Kempkens 2022-07-31 12:34:06 +02:00
parent 70381b00e0
commit f07c99b908
2 changed files with 4 additions and 2 deletions

View file

@ -38,7 +38,7 @@
[http.middlewares]
[http.middlewares.non-www-redirect.redirectRegex]
regex = "^https://www.(.*)"
replacement = "https://${1}"
replacement = "https://''${1}"
permanent = true
[http.middlewares.https-redirect.redirectScheme]

View file

@ -2,6 +2,8 @@ let
secret = import ../../secret/container/webserver.nix;
config-mosquitto = import ./config/mosquitto.nix { inherit secret; };
config-traefik = import ./config/traefik.nix { inherit secret; };
custom-config = config-mosquitto // config-traefik;
in
{
virtualisation.arion.projects.webserver.settings = {
@ -95,4 +97,4 @@ in
};
};
};
} // config-mosquitto // config-traefik
} // custom-config