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.
@ A ${vno1}
www A ${vno1}
photos A ${vno1}
ns1 A ${vno1}
ns2 A ${fra1b}
vpn A ${vno1}

View File

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

View File

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