alyssum/immich: move public proxy to dandelion
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run

This commit is contained in:
Cilly Leang 2026-06-20 19:38:31 +10:00
parent 6c83cb4e67
commit c148518a34
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 27 additions and 21 deletions

View file

@ -9,11 +9,6 @@ in {
settings.server.externalDomain = "https://${shareFqdn}";
};
services.immich-public-proxy = {
enable = true;
immichUrl = "https://${fqdn}";
};
me.binds."/var/lib/immich" = "/flower/immich";
me.binds."/var/lib/immich/encoded-video" = "immich/encoded-video";
me.binds."/var/lib/immich/profile" = "immich/profile";
@ -37,20 +32,4 @@ in {
'';
};
};
services.nginx.virtualHosts."${shareFqdn}" = {
useACMEHost = "lava.moe";
forceSSL = true;
locations."/" = {
proxyPass = "http://[::1]:${toString config.services.immich-public-proxy.port}";
proxyWebsockets = true;
extraConfig = ''
client_max_body_size 50000M;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
};
};
}

View file

@ -34,6 +34,7 @@
./filesystem.nix
./kernel.nix
./immich-proxy.nix
./networking.nix
./nginx.nix

View file

@ -0,0 +1,26 @@
{ config, ... }:
let
fqdn = "photos.lava.moe";
shareFqdn = "memo.lava.moe";
in {
services.immich-public-proxy = {
enable = true;
immichUrl = "https://${fqdn}";
};
services.nginx.virtualHosts."${shareFqdn}" = {
useACMEHost = "lava.moe";
forceSSL = true;
locations."/" = {
proxyPass = "http://[::1]:${toString config.services.immich-public-proxy.port}";
proxyWebsockets = true;
extraConfig = ''
client_max_body_size 50000M;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
};
};
}