From 15539bebabaecda0abd49173bb2461149cbf0041 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 26 Oct 2021 21:03:07 +0200 Subject: l nginx: reload instead of restart, remove old default --- lass/2configs/websites/default.nix | 7 +------ lass/2configs/websites/lassulus.nix | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'lass/2configs/websites') 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 ; 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; ''; -- cgit v1.2.3