Add immich

This commit is contained in:
Amanda Graven 2025-03-23 18:10:55 +01:00
parent 2210d8eecf
commit 68bd97fe3a
Signed by: amanda
GPG key ID: F747582C5608F4CB
3 changed files with 25 additions and 1 deletions
config/hosts/rudiger

View file

@ -10,6 +10,7 @@
../../common/services/tailscale.nix
../../common/users.nix
./services/acme.nix
./services/immich.nix
./services/nextcloud.nix
./services/nginx.nix
./services/postgres.nix

View file

@ -0,0 +1,8 @@
{ ... }:
{
services.immich = {
enable = true;
port = 2283;
};
}

View file

@ -1,8 +1,23 @@
{ ... }:
{ config, ... }:
{
imports = [ ../../../common/services/nginx.nix ];
services.nginx.virtualHosts."cloud.graven.dev" = {
enableACME = true;
forceSSL = true;
};
services.nginx.virtualHosts."immich.graven.dev" = {
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;
'';
};
};
}