diff --git a/hosts/ildkule/services/nginx/default.nix b/hosts/ildkule/services/nginx/default.nix index 99dfbd8..90954a1 100644 --- a/hosts/ildkule/services/nginx/default.nix +++ b/hosts/ildkule/services/nginx/default.nix @@ -1,7 +1,5 @@ -{config, ... }: - +{ config, values, ... }: { - security.acme = { acceptTerms = true; defaults.email = "drift@pvv.ntnu.no"; @@ -10,6 +8,17 @@ services.nginx = { enable = true; + enableReload = true; + + defaultListenAddresses = [ + values.hosts.ildkule.ipv4 + "[${values.hosts.ildkule.ipv6}]" + + "127.0.0.1" + "127.0.0.2" + "[::1]" + ]; + recommendedProxySettings = true; recommendedTlsSettings = true; recommendedGzipSettings = true; diff --git a/hosts/jokum/services/nginx/default.nix b/hosts/jokum/services/nginx/default.nix index f2a97a5..eb4f768 100644 --- a/hosts/jokum/services/nginx/default.nix +++ b/hosts/jokum/services/nginx/default.nix @@ -1,7 +1,5 @@ -{config, ... }: - +{ config, values, ... }: { - security.acme = { acceptTerms = true; defaults.email = "danio@pvv.ntnu.no"; @@ -10,7 +8,16 @@ services.nginx = { enable = true; - defaultListenAddresses = [ "129.241.210.169" "127.0.0.1" "127.0.0.2" "[2001:700:300:1900::169]" "[::1]" ]; + enableReload = true; + + defaultListenAddresses = [ + values.hosts.jokum.ipv4 + "[${values.hosts.jokum.ipv6}]" + + "127.0.0.1" + "127.0.0.2" + "[::1]" + ]; recommendedProxySettings = true; recommendedTlsSettings = true;