nixos/mailman: remove trailing slash from /static
location
Otherwise HTTP routes such as `/static/django-mailman3/css/main.css` will cause a 404.
This commit is contained in:
parent
3dc3a628fd
commit
367897a68b
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ in {
|
||||||
virtualHosts = lib.genAttrs cfg.webHosts (webHost: {
|
virtualHosts = lib.genAttrs cfg.webHosts (webHost: {
|
||||||
locations = {
|
locations = {
|
||||||
${cfg.serve.virtualRoot}.extraConfig = "uwsgi_pass unix:/run/mailman-web.socket;";
|
${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 + "/";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue