2024-10-09 00:04:46 +02:00
|
|
|
{ lib, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.photoprism = {
|
|
|
|
enable = true;
|
2024-11-03 16:46:51 +01:00
|
|
|
port = 2342;
|
2024-10-09 00:04:46 +02:00
|
|
|
settings = {
|
|
|
|
PHOTOPRISM_DEFAULT_LOCALE = "fr";
|
|
|
|
PHOTOPRISM_ADMIN_USERNAME = "admin";
|
2024-11-03 16:46:51 +01:00
|
|
|
PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr";
|
2024-10-09 00:04:46 +02:00
|
|
|
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
|
|
|
|
};
|
|
|
|
|
2024-11-03 16:46:51 +01:00
|
|
|
#originalsPath = "/photoprism/photos";
|
|
|
|
#importPath = "/photoprism/imports";
|
2024-10-09 00:04:46 +02:00
|
|
|
|
2024-10-09 17:06:24 +02:00
|
|
|
address = "localhost";
|
|
|
|
|
2024-11-03 16:42:09 +01:00
|
|
|
#passwordFile = "/passwords/photoprism";
|
2024-10-09 00:04:46 +02:00
|
|
|
};
|
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/";
|
|
|
|
};
|
2024-10-09 00:04:46 +02:00
|
|
|
}
|