28 lines
647 B
Nix
28 lines
647 B
Nix
{ lib, modulesPath, ... }:
|
|
|
|
{
|
|
services.photoprism = {
|
|
enable = true;
|
|
port = 2342;
|
|
settings = {
|
|
PHOTOPRISM_DEFAULT_LOCALE = "fr";
|
|
PHOTOPRISM_ADMIN_USERNAME = "admin";
|
|
PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr";
|
|
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
|
|
};
|
|
|
|
originalsPath = /data/photos;
|
|
#importPath = "/photoprism/imports";
|
|
|
|
address = "localhost";
|
|
|
|
#passwordFile = "/passwords/photoprism";
|
|
};
|
|
|
|
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
serverAliases = [];
|
|
locations."/".proxyPass = "http://localhost:2342/";
|
|
};
|
|
}
|