mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-20 03:40:29 +05:00
chore: make photoprism private
This commit is contained in:
parent
aabf8acf1b
commit
c28b4da5ef
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -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\""
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue