fix: nginx settings

This commit is contained in:
Constantin Gierczak--Galle 2024-11-03 16:58:43 +01:00
parent 59d9b333d1
commit 9a7a745cd6
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View file

@ -65,7 +65,11 @@ in
# TODO: switch to unixsockets if supported # TODO: switch to unixsockets if supported
services.nginx = { services.nginx = {
enable = true; enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedProxySettings = true;
clientMaxBodySize = "500m";
}; };
nix = { nix = {

View file

@ -38,16 +38,10 @@
}]; }];
}; };
services.nginx.virtualHosts."photoprism.cgiga.fr" = { services.nginx.virtualHosts."photoprism.cgiga.fr" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
serverAliases = []; serverAliases = [];
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
clientMaxBodySize = "500m";
locations."/" = { locations."/" = {
proxyPass = "http://localhost:2342/"; proxyPass = "http://localhost:2342/";
proxyWebsockets = true; proxyWebsockets = true;