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