summaryrefslogtreecommitdiff
path: root/immich.nix
diff options
context:
space:
mode:
Diffstat (limited to 'immich.nix')
-rw-r--r--immich.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/immich.nix b/immich.nix
index 1bac19b..8bd021f 100644
--- a/immich.nix
+++ b/immich.nix
@@ -19,9 +19,20 @@ in
services.nginx = {
enable = true;
virtualHosts."immich.oden.m" = {
+ extraConfig = ''
+ client_max_body_size 50000M;
+ proxy_read_timeout 600s;
+ proxy_send_timeout 600s;
+ send_timeout 600s;
+ '';
locations."/" = {
proxyPass = "http://localhost:${toString config.services.immich.port}";
+ proxyWebsockets = true;
};
+ listen = [ {
+ addr = "10.69.0.1";
+ port = 80;
+ } ];
};
};
networking.firewall.allowedTCPPorts = [ 80 ];