feat: immich setup

This commit is contained in:
s-prechtl 2026-03-24 11:44:21 +01:00
parent 661cdab043
commit 6e8916be59

View file

@ -0,0 +1,24 @@
{ config, ... }:
let
domain = "immich.sprechtl.me";
in
{
services.immich = {
enable = true;
database.host = "/run/postgresql";
port = 2283; # default
settings.externalDomain = domain;
mediaLocation = "/data/immich/";
};
# nginx reverse proxy
services.nginx.virtualHosts.${domain}= {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:2283";
proxyWebsockets = true;
extraConfig = "client_max_body_size 50000M;"; # for large video uploads
};
};
}