webserver: Escape $ in traefik middleware
This commit is contained in:
parent
70381b00e0
commit
f07c99b908
2 changed files with 4 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
||||||
[http.middlewares]
|
[http.middlewares]
|
||||||
[http.middlewares.non-www-redirect.redirectRegex]
|
[http.middlewares.non-www-redirect.redirectRegex]
|
||||||
regex = "^https://www.(.*)"
|
regex = "^https://www.(.*)"
|
||||||
replacement = "https://${1}"
|
replacement = "https://''${1}"
|
||||||
permanent = true
|
permanent = true
|
||||||
|
|
||||||
[http.middlewares.https-redirect.redirectScheme]
|
[http.middlewares.https-redirect.redirectScheme]
|
||||||
|
|
|
@ -2,6 +2,8 @@ let
|
||||||
secret = import ../../secret/container/webserver.nix;
|
secret = import ../../secret/container/webserver.nix;
|
||||||
config-mosquitto = import ./config/mosquitto.nix { inherit secret; };
|
config-mosquitto = import ./config/mosquitto.nix { inherit secret; };
|
||||||
config-traefik = import ./config/traefik.nix { inherit secret; };
|
config-traefik = import ./config/traefik.nix { inherit secret; };
|
||||||
|
|
||||||
|
custom-config = config-mosquitto // config-traefik;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
virtualisation.arion.projects.webserver.settings = {
|
virtualisation.arion.projects.webserver.settings = {
|
||||||
|
@ -95,4 +97,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // config-mosquitto // config-traefik
|
} // custom-config
|
||||||
|
|
Loading…
Reference in a new issue