hosts/hazel: init immich

This commit is contained in:
LavaDesu 2025-04-05 14:33:57 +11:00
parent e90ebf6220
commit e7a7b39d41
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -42,4 +42,27 @@
forceSSL = true;
enableACME = true;
};
services.immich = {
enable = true;
port = 2283;
};
users.users.immich.extraGroups = [ "video" "render" ];
hardware.opengl.enable = true;
services.nginx.virtualHosts."photos.lava.moe" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://[::1]:${toString config.services.immich.port}";
proxyWebsockets = true;
recommendedProxySettings = true;
extraConfig = ''
client_max_body_size 50000M;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
};
};
}