l nginx: reload instead of restart, remove old default

This commit is contained in:
lassulus 2021-10-26 21:03:07 +02:00
parent 82e49f156a
commit 15539bebab
2 changed files with 2 additions and 6 deletions

View File

@ -8,12 +8,7 @@ with import <stockholm/lib>;
recommendedOptimisation = true;
recommendedTlsSettings = true;
virtualHosts._http = {
default = true;
extraConfig = ''
return 404;
'';
};
enableReload = true;
virtualHosts.default = {
locations."= /etc/os-release".extraConfig = ''

View File

@ -32,6 +32,7 @@ in {
services.nginx.virtualHosts."lassul.us" = {
addSSL = true;
enableACME = true;
default = true;
locations."/".extraConfig = ''
root /srv/http/lassul.us;
'';