From 5d958027300049e40ee8bd18a48d9e49b0c1c8a5 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 11 Jan 2024 18:00:58 +0300 Subject: [PATCH] Use the root acme host all the time --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index c746251..c7cabb6 100644 --- a/flake.nix +++ b/flake.nix @@ -156,15 +156,15 @@ recommendedTlsSettings = mkDefault true; virtualHosts.${cfg.url} = { - enableACME = true; - forceSSL = true; + forceSSL = true; + useACMEHost = cfg.url; locations."/".proxyPass = "http://localhost:${toString cfg.port}"; }; virtualHosts."www.${cfg.url}" = { - forceSSL = true; - enableACME = true; + forceSSL = true; + useACMEHost = cfg.url; locations."/".extraConfig = '' return 301 https://${cfg.url}$request_uri;