fix: nginx settings
This commit is contained in:
parent
59d9b333d1
commit
9a7a745cd6
2 changed files with 4 additions and 6 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue