nixos-config/machines/fuuko/services/photoprism.nix
Simon Bruder 0d92c932ed
fuuko/photoprism: Make reachable from outside
This is not that good, because if I am at home, I want to have a fast
connection without routing everything through the Internet first. I
currently work around this by using an ssh tunnel for this.
2023-08-19 17:30:52 +02:00

25 lines
513 B
Nix

{ config, ... }:
{
services.photoprism = {
enable = true;
originalsPath = "/data/cold/photoprism";
settings = {
PHOTOPRISM_SITE_URL = "https://photoprism.sbruder.de/";
};
};
sbruder.restic.system.extraExcludes = [
"/var/lib/private/photoprism"
];
services.nginx.virtualHosts."photoprism.sbruder.de" = {
locations = {
"/" = {
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
proxyWebsockets = true;
};
};
};
}