diff options
| author | Maximilian Bosch <maximilian@mbosch.me> | 2022-12-03 13:02:20 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-12-05 15:54:58 +0000 |
| commit | d9e50013f6a963003a89262116a83f1d491363d2 (patch) | |
| tree | 4c1923e812f83212afb551643b9162a94ec7e6a2 | |
| parent | Merge pull request #204638 from NixOS/backport-202855-to-release-22.11 (diff) | |
| download | nixpkgs-origin/backport-204269-to-release-22.11.tar.gz | |
nixos/mailman: remove trailing slash from `/static` locationorigin/backport-204269-to-release-22.11
Otherwise HTTP routes such as `/static/django-mailman3/css/main.css`
will cause a 404.
(cherry picked from commit 367897a68b3ba59b7f849fd38a49bb0cd0a6ef7d)
| -rw-r--r-- | nixos/modules/services/mail/mailman.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index 198c2f3280f5..5edcd313a91a 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -443,7 +443,7 @@ in { virtualHosts = lib.genAttrs cfg.webHosts (webHost: { locations = { ${cfg.serve.virtualRoot}.extraConfig = "uwsgi_pass unix:/run/mailman-web.socket;"; - "${cfg.serve.virtualRoot}/static/".alias = webSettings.STATIC_ROOT + "/"; + "${removeSuffix "/" cfg.serve.virtualRoot}/static/".alias = webSettings.STATIC_ROOT + "/"; }; }); }; |
