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
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
clientMaxBodySize = "500m";
};
nix = {

View file

@ -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;