diff options
author | lassulus <lassulus@lassul.us> | 2021-10-26 21:03:07 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-10-26 21:03:29 +0200 |
commit | 15539bebabaecda0abd49173bb2461149cbf0041 (patch) | |
tree | 50408c2fe009773187faea4d0ac80f00778cf411 /lass/2configs/websites | |
parent | 82e49f156a525a6966af3056dcf2ceeb16ffa889 (diff) |
l nginx: reload instead of restart, remove old default
Diffstat (limited to 'lass/2configs/websites')
-rw-r--r-- | lass/2configs/websites/default.nix | 7 | ||||
-rw-r--r-- | lass/2configs/websites/lassulus.nix | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lass/2configs/websites/default.nix b/lass/2configs/websites/default.nix index 1ffa105a7..bfd86ad7e 100644 --- a/lass/2configs/websites/default.nix +++ b/lass/2configs/websites/default.nix @@ -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 = '' diff --git a/lass/2configs/websites/lassulus.nix b/lass/2configs/websites/lassulus.nix index bb983b78e..5bf8de013 100644 --- a/lass/2configs/websites/lassulus.nix +++ b/lass/2configs/websites/lassulus.nix @@ -32,6 +32,7 @@ in { services.nginx.virtualHosts."lassul.us" = { addSSL = true; enableACME = true; + default = true; locations."/".extraConfig = '' root /srv/http/lassul.us; ''; |