nixos-config/machines/fuuko/services/photoprism.nix

25 lines
513 B
Nix
Raw Permalink Normal View History

2023-08-18 22:17:02 +02:00
{ config, ... }:
{
services.photoprism = {
enable = true;
originalsPath = "/data/cold/photoprism";
settings = {
PHOTOPRISM_SITE_URL = "https://photoprism.sbruder.de/";
};
2023-08-18 22:17:02 +02:00
};
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;
};
};
};
2023-08-18 22:17:02 +02:00
}