re-enable immich

This commit is contained in:
Motiejus Jakštys 2024-09-27 15:46:44 +03:00
parent 49af61608f
commit 1c0dd07612
3 changed files with 6 additions and 7 deletions

View File

@ -195,6 +195,7 @@ rec {
@ NS ns2.jakstys.lt. @ NS ns2.jakstys.lt.
@ A ${vno1} @ A ${vno1}
www A ${vno1} www A ${vno1}
photos A ${vno1}
ns1 A ${vno1} ns1 A ${vno1}
ns2 A ${fra1b} ns2 A ${fra1b}
vpn A ${vno1} vpn A ${vno1}

View File

@ -442,7 +442,7 @@ in
}; };
immich = { immich = {
enable = false; enable = true;
paths = { paths = {
"M-Camera" = "/home/motiejus/annex2/M-Active"; "M-Camera" = "/home/motiejus/annex2/M-Active";
"Pictures" = "/home/motiejus/annex2/Pictures"; "Pictures" = "/home/motiejus/annex2/Pictures";

View File

@ -24,12 +24,10 @@ in
package = pkgs.pkgs-unstable.immich; package = pkgs.pkgs-unstable.immich;
}; };
mj.services.friendlyport.ports = [ services.caddy.virtualHosts."photos.jakstys.lt:80".extraConfig = ''
{ @denied not remote_ip ${myData.subnets.tailscale.cidr}
subnets = [ myData.subnets.tailscale.cidr ]; reverse_proxy 127.0.0.1:${toString myData.ports.immich-server}
tcp = [ myData.ports.immich-server ]; '';
}
];
#systemd = { #systemd = {
# #tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ]; # #tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ];