dotfiles/hosts/hitsugibune/immich.nix
2026-03-24 11:44:21 +01:00

24 lines
545 B
Nix

{ 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
};
};
}