Infini-DL360/immich: init
This commit is contained in:
parent
b092776562
commit
ffcca5dc3f
2 changed files with 26 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
./freshrss.nix
|
./freshrss.nix
|
||||||
./hedgedoc.nix
|
./hedgedoc.nix
|
||||||
./hydra.nix
|
./hydra.nix
|
||||||
|
./immich.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./jupyter.nix
|
./jupyter.nix
|
||||||
./postgresql.nix
|
./postgresql.nix
|
||||||
|
|
25
hosts/Infini-DL360/immich.nix
Normal file
25
hosts/Infini-DL360/immich.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, pkgs, common, ... }:
|
||||||
|
let
|
||||||
|
domain = common.subdomain "photos";
|
||||||
|
cfg = config.services.immich;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts.${domain} = common.nginx.ssl // {
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 5000M;
|
||||||
|
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
|
'';
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.immich = {
|
||||||
|
enable = true;
|
||||||
|
mediaLocation = "/srv/immich";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue