re-enable immich
This commit is contained in:
parent
49af61608f
commit
1c0dd07612
1
data.nix
1
data.nix
@ -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}
|
||||
|
@ -442,7 +442,7 @@ in
|
||||
};
|
||||
|
||||
immich = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
paths = {
|
||||
"M-Camera" = "/home/motiejus/annex2/M-Active";
|
||||
"Pictures" = "/home/motiejus/annex2/Pictures";
|
||||
|
@ -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 -" ];
|
||||
|
Loading…
Reference in New Issue
Block a user