33 lines
653 B
Nix
33 lines
653 B
Nix
let
|
|
port = 2283;
|
|
in
|
|
{
|
|
services = {
|
|
immich = {
|
|
enable = true;
|
|
inherit port;
|
|
mediaLocation = "/srv/immich";
|
|
};
|
|
|
|
borgmatic.settings.postgresql_databases = [
|
|
{
|
|
name = "immich";
|
|
hostname = "localhost";
|
|
username = "root";
|
|
password = "{credential systemd borgmatic-pg}";
|
|
}
|
|
];
|
|
|
|
nginx = {
|
|
clientMaxBodySize = "50000M";
|
|
virtualHosts."immich.fi33.buzz" = {
|
|
forceSSL = true;
|
|
useACMEHost = "fi33.buzz";
|
|
locations."/" = {
|
|
proxyPass = "http://[::1]:${toString port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|