parent
30168d8aaa
commit
bca574d19d
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
lib,
|
lib,
|
||||||
components,
|
components,
|
||||||
inputs,
|
inputs,
|
||||||
|
zerotierInterface,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -14,17 +15,19 @@ in
|
||||||
{
|
{
|
||||||
|
|
||||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ photoprismPort ];
|
networking.firewall.interfaces.wg0.allowedTCPPorts = [ photoprismPort ];
|
||||||
# networking.firewall.interfaces.wg0.allowedUDPPorts = [ photoprismPort ];
|
|
||||||
|
|
||||||
healthchecks.closed.public.ports.photoprism = [
|
healthchecks.closed.public.ports.photoprism = [
|
||||||
photoprismPort
|
photoprismPort
|
||||||
mysqlPort
|
mysqlPort
|
||||||
];
|
];
|
||||||
|
|
||||||
healthchecks.http.photoprism = {
|
healthchecks.http.photoprism = {
|
||||||
url = "http://10.100.0.1:2342/library/login";
|
url = "http://10.100.0.1:2342/library/login";
|
||||||
expectedContent = "AI-Powered Photos App";
|
expectedContent = "AI-Powered Photos App";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.interfaces.${zerotierInterface}.allowedTCPPorts = [ photoprismPort ];
|
||||||
|
|
||||||
containers.photoprism = {
|
containers.photoprism = {
|
||||||
privateNetwork = false;
|
privateNetwork = false;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue