feat: immich setup
This commit is contained in:
parent
661cdab043
commit
6e8916be59
1 changed files with 24 additions and 0 deletions
24
hosts/hitsugibune/immich.nix
Normal file
24
hosts/hitsugibune/immich.nix
Normal 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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue