make photoprism available via zerotier

This commit is contained in:
Ingolf Wagner 2025-04-03 16:51:17 +02:00
parent 30168d8aaa
commit bca574d19d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -4,6 +4,7 @@
lib,
components,
inputs,
zerotierInterface,
...
}:
let
@ -14,17 +15,19 @@ in
{
networking.firewall.interfaces.wg0.allowedTCPPorts = [ photoprismPort ];
# networking.firewall.interfaces.wg0.allowedUDPPorts = [ photoprismPort ];
healthchecks.closed.public.ports.photoprism = [
photoprismPort
mysqlPort
];
healthchecks.http.photoprism = {
url = "http://10.100.0.1:2342/library/login";
expectedContent = "AI-Powered Photos App";
};
networking.firewall.interfaces.${zerotierInterface}.allowedTCPPorts = [ photoprismPort ];
containers.photoprism = {
privateNetwork = false;
autoStart = true;