immich: init
This commit is contained in:
parent
db13bc801c
commit
42aa8b3a78
10 changed files with 259 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./auth.nix
|
||||
./dav.nix
|
||||
./immich.nix
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
33
hosts/cloud/proxy/immich.nix
Normal file
33
hosts/cloud/proxy/immich.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.nginx.upstreams.immich = {
|
||||
servers = {
|
||||
"10.89.88.13:2283" = { };
|
||||
"[fd31:185d:722f::13]:2283" = { };
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."immich.oxapentane.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://immich";
|
||||
extraConfig = ''
|
||||
client_max_body_size 50000M;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_read_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
send_timeout 600s;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue