feat: run immich
This commit is contained in:
parent
cfa7dfacd6
commit
f4e53de4c4
|
@ -40,7 +40,8 @@ D('sealight.xyz', REG_NONE, DnsProvider(DNS_HEDNS),
|
||||||
A('bin', '69.61.2.203', TTL(300)),
|
A('bin', '69.61.2.203', TTL(300)),
|
||||||
A('ci', '69.61.2.203', TTL(300)),
|
A('ci', '69.61.2.203', TTL(300)),
|
||||||
A('write', '69.61.2.203', TTL(300)),
|
A('write', '69.61.2.203', TTL(300)),
|
||||||
// vultr -> nulled: lituus
|
A('photos', '69.61.2.203', TTL(300)),
|
||||||
|
// vultr: lituus
|
||||||
A('@', '45.77.48.108', TTL(300)),
|
A('@', '45.77.48.108', TTL(300)),
|
||||||
A('jitsi', '45.77.48.108', TTL(300)),
|
A('jitsi', '45.77.48.108', TTL(300)),
|
||||||
A('chat', '45.77.48.108', TTL(300)),
|
A('chat', '45.77.48.108', TTL(300)),
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
# "/home/anish/usr/nonfiction" # syncthing
|
# "/home/anish/usr/nonfiction" # syncthing
|
||||||
"/home/anish/usr/finance" # beancount
|
"/home/anish/usr/finance" # beancount
|
||||||
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
|
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
|
||||||
|
"/mnt/two/photos"
|
||||||
|
"/mnt/two/music"
|
||||||
];
|
];
|
||||||
# seafile
|
# seafile
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,20 +31,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Reverse proxy for immich
|
# Reverse proxy for immich
|
||||||
services.nginx.virtualHosts."photos.sealight.xyz" = {
|
# services.nginx.virtualHosts."photos.sealight.xyz" = {
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
proxy_pass http://10.0.69.4:8567;
|
# proxy_pass http://10.0.69.4:8567;
|
||||||
proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
services.postgresql.package = pkgs.postgresql_15;
|
services.postgresql.package = pkgs.postgresql_15;
|
||||||
services.postgresqlBackup = {
|
services.postgresqlBackup = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
services.immich = {
|
services.immich = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -7,16 +7,23 @@
|
||||||
};
|
};
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = 8567;
|
port = 8567;
|
||||||
mediaLocation = "/data/photos";
|
mediaLocation = "/mnt/two/photos";
|
||||||
externalDomain = "https://photos.sealight.xyz";
|
openFirewall = true;
|
||||||
|
settings.server.externalDomain = "https://photos.sealight.xyz";
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."photos.mossnet.lan" = {
|
services.nginx.virtualHosts."photos.mossnet.lan" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${toString config.services.immich.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_pass http://127.0.0.1:8567/;
|
client_max_body_size 50000M;
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue