alyssum/immich: move public proxy to dandelion
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
This commit is contained in:
parent
6c83cb4e67
commit
c148518a34
3 changed files with 27 additions and 21 deletions
|
|
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
./filesystem.nix
|
||||
./kernel.nix
|
||||
./immich-proxy.nix
|
||||
./networking.nix
|
||||
./nginx.nix
|
||||
|
||||
|
|
|
|||
26
hosts/dandelion/immich-proxy.nix
Normal file
26
hosts/dandelion/immich-proxy.nix
Normal 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue