mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-19 19:30:28 +05:00
chore: make photoprism private
This commit is contained in:
parent
aabf8acf1b
commit
c28b4da5ef
|
@ -31,12 +31,12 @@
|
|||
./services/microboard.nix
|
||||
./services/nextcloud.nix
|
||||
./services/phoenix.nix
|
||||
./services/photoprism.nix
|
||||
./services/prosody.nix
|
||||
./services/ss.nix
|
||||
./services/synapse.nix
|
||||
./services/yggdrasil.nix
|
||||
|
||||
./private/photoprism.nix
|
||||
./private/vaultwarden.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -11,9 +11,11 @@
|
|||
"10.100.0.0/24 allow"
|
||||
];
|
||||
local-zone = [
|
||||
"\"pp.comfycamp.space\" static"
|
||||
"\"vault.comfycamp.space\" static"
|
||||
];
|
||||
local-data = [
|
||||
"\"pp.comfycamp.space IN A 10.100.0.1\""
|
||||
"\"vault.comfycamp.space IN A 10.100.0.1\""
|
||||
];
|
||||
};
|
||||
|
|
|
@ -25,11 +25,12 @@
|
|||
services.nginx.virtualHosts."pp.comfycamp.space" = {
|
||||
useACMEHost = "comfycamp.space";
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://127.0.0.1:55004";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
listenAddresses = [
|
||||
"10.100.0.1"
|
||||
];
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue