From 0dd03b096554eacb0bcb531f99743701eba8aeac Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Wed, 31 May 2023 15:14:14 +0200 Subject: [PATCH] enable acme for the ifsr base domain --- modules/nginx.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/nginx.nix b/modules/nginx.nix index 7cc17f2..5f5a79e 100644 --- a/modules/nginx.nix +++ b/modules/nginx.nix @@ -2,6 +2,10 @@ { services.nginx = { enable = true; + virtualHosts."${config.fsr.domain}" = { + enableACME = true; + forceSSL = true; + }; appendHttpConfig = '' map $remote_addr $remote_addr_anon { ~(?P\d+\.\d+\.\d+)\. $ip.0;