From 9a7a745cd6b3ac32cbabde32c71240db38e92b9b Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Sun, 3 Nov 2024 16:58:43 +0100 Subject: [PATCH] fix: nginx settings --- configuration.nix | 4 ++++ photoprism.nix | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7641aa7..e45365a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -65,7 +65,11 @@ in # TODO: switch to unixsockets if supported services.nginx = { enable = true; + recommendedTlsSettings = true; + recommendedOptimisation = true; recommendedGzipSettings = true; + recommendedProxySettings = true; + clientMaxBodySize = "500m"; }; nix = { diff --git a/photoprism.nix b/photoprism.nix index e1a719a..dc7061a 100644 --- a/photoprism.nix +++ b/photoprism.nix @@ -38,16 +38,10 @@ }]; }; - services.nginx.virtualHosts."photoprism.cgiga.fr" = { enableACME = true; forceSSL = true; serverAliases = []; - recommendedTlsSettings = true; - recommendedOptimisation = true; - recommendedGzipSettings = true; - recommendedProxySettings = true; - clientMaxBodySize = "500m"; locations."/" = { proxyPass = "http://localhost:2342/"; proxyWebsockets = true;