photoprism-test-vm/photoprism.nix

29 lines
649 B
Nix
Raw Normal View History

{ lib, modulesPath, ... }:
{
services.photoprism = {
enable = true;
2024-11-03 16:46:51 +01:00
port = 2342;
settings = {
PHOTOPRISM_DEFAULT_LOCALE = "fr";
PHOTOPRISM_ADMIN_USERNAME = "admin";
2024-11-03 16:46:51 +01:00
PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr";
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
};
2024-11-03 16:50:42 +01:00
originalsPath = "/data/photos";
2024-11-03 16:46:51 +01:00
#importPath = "/photoprism/imports";
address = "localhost";
2024-11-03 16:42:09 +01:00
#passwordFile = "/passwords/photoprism";
};
2024-10-14 14:53:27 +02:00
2024-11-03 16:24:07 +01:00
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
2024-10-14 14:53:27 +02:00
enableACME = true;
forceSSL = true;
serverAliases = [];
locations."/".proxyPass = "http://localhost:2342/";
};
}