chore: make photoprism private

This commit is contained in:
Ivan R. 2024-05-10 17:23:03 +05:00
parent aabf8acf1b
commit c28b4da5ef
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
3 changed files with 9 additions and 6 deletions

View file

@ -31,12 +31,12 @@
./services/microboard.nix ./services/microboard.nix
./services/nextcloud.nix ./services/nextcloud.nix
./services/phoenix.nix ./services/phoenix.nix
./services/photoprism.nix
./services/prosody.nix ./services/prosody.nix
./services/ss.nix ./services/ss.nix
./services/synapse.nix ./services/synapse.nix
./services/yggdrasil.nix ./services/yggdrasil.nix
./private/photoprism.nix
./private/vaultwarden.nix ./private/vaultwarden.nix
]; ];

View file

@ -11,9 +11,11 @@
"10.100.0.0/24 allow" "10.100.0.0/24 allow"
]; ];
local-zone = [ local-zone = [
"\"pp.comfycamp.space\" static"
"\"vault.comfycamp.space\" static" "\"vault.comfycamp.space\" static"
]; ];
local-data = [ local-data = [
"\"pp.comfycamp.space IN A 10.100.0.1\""
"\"vault.comfycamp.space IN A 10.100.0.1\"" "\"vault.comfycamp.space IN A 10.100.0.1\""
]; ];
}; };

View file

@ -25,11 +25,12 @@
services.nginx.virtualHosts."pp.comfycamp.space" = { services.nginx.virtualHosts."pp.comfycamp.space" = {
useACMEHost = "comfycamp.space"; useACMEHost = "comfycamp.space";
forceSSL = true; forceSSL = true;
locations = { listenAddresses = [
"/" = { "10.100.0.1"
proxyPass = "http://127.0.0.1:55004"; ];
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
};
} }