Merge pull request #204269 from mayflower/fix-mailman-nginx

nixos/mailman: remove trailing slash from `/static` location
This commit is contained in:
Maximilian Bosch 2022-12-05 16:48:57 +01:00 committed by GitHub
commit 38c786c6ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 + "/";
};
});
};