diff --git a/modules/jellyfin.nix b/modules/jellyfin.nix index 7df1929..b8d7b44 100644 --- a/modules/jellyfin.nix +++ b/modules/jellyfin.nix @@ -108,7 +108,7 @@ in # Take advice from https://jellyfin.org/docs/general/networking/nginx/ and https://nixos.wiki/wiki/Plex services.nginx.virtualHosts."${fqdn}" = { - addSSL = true; + forceSSL = true; http2 = true; sslCertificate = "/var/lib/acme/${cfg.domain}/cert.pem"; sslCertificateKey = "/var/lib/acme/${cfg.domain}/key.pem"; diff --git a/modules/monitoring.nix b/modules/monitoring.nix index f45afe7..39c09fc 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -78,7 +78,7 @@ in # recommendedProxySettings = true; virtualHosts.${fqdn} = { - addSSL = true; + forceSSL = true; sslCertificate = "/var/lib/acme/${cfg.domain}/cert.pem"; sslCertificateKey = "/var/lib/acme/${cfg.domain}/key.pem"; locations."/" = { diff --git a/modules/nextcloud-server.nix b/modules/nextcloud-server.nix index a27ba75..d1fdecf 100644 --- a/modules/nextcloud-server.nix +++ b/modules/nextcloud-server.nix @@ -113,7 +113,7 @@ in # listen = [ { addr = "0.0.0.0"; port = 443; } ]; sslCertificate = "/var/lib/acme/${cfg.domain}/cert.pem"; sslCertificateKey = "/var/lib/acme/${cfg.domain}/key.pem"; - addSSL = true; + forceSSL = true; }; systemd.services.phpfpm-nextcloud.serviceConfig = {