This commit is contained in:
iofq 2025-06-02 00:59:49 -05:00
parent e4dc04a7ff
commit 4eedb65822

View file

@ -47,24 +47,24 @@
machine-learning.enable = false; machine-learning.enable = false;
mediaLocation = "/rice/immich"; mediaLocation = "/rice/immich";
}; };
nginx = { nginx = {
enable = true; enable = true;
virtualHosts."img.10110110.xyz" = { virtualHosts."img.10110110.xyz" = {
useACMEHost = "10110110.xyz"; useACMEHost = "10110110.xyz";
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString config.services.immich.port}"; proxyPass = "http://localhost:${toString config.services.immich.port}";
proxyWebsockets = true; proxyWebsockets = true;
recommendedProxySettings = true; recommendedProxySettings = true;
extraConfig = '' extraConfig = ''
client_max_body_size 50000M; client_max_body_size 50000M;
proxy_read_timeout 600s; proxy_read_timeout 600s;
proxy_send_timeout 600s; proxy_send_timeout 600s;
send_timeout 600s; send_timeout 600s;
''; '';
};
}; };
}; };
};
}; };
boot = { boot = {
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;