1
0
Fork 0
forked from DGNum/lab-infra

style(photo01): "..." -> "" in module inputs

This commit is contained in:
Constantin Gierczak--Galle 2024-11-21 18:47:17 +01:00
parent abf9f2d2f5
commit 2aa758ae94
No known key found for this signature in database
3 changed files with 44 additions and 47 deletions

View file

@ -1,4 +1,4 @@
{ ... }: { }:
{ {

View file

@ -1,4 +1,4 @@
{ ... }: { _ }:
{ {
services.openssh = { services.openssh = {

View file

@ -1,57 +1,54 @@
{ pkgs, ... }: { pkgs, ... }:
let
port = 2342;
in
{ {
services = { services = {
photoprism = { photoprism = {
enable = true; enable = true;
port = port; port = 2342;
settings = { settings = {
PHOTOPRISM_DEFAULT_LOCALE = "fr"; PHOTOPRISM_DEFAULT_LOCALE = "fr";
PHOTOPRISM_ADMIN_USERNAME = "admin"; PHOTOPRISM_ADMIN_USERNAME = "admin";
PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr"; PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr";
PHOTOPRISM_SITE_CAPTION = "PhotoPrism"; PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
# DB access config # DB access config
PHOTOPRISM_DATABASE_DRIVER = "mysql"; PHOTOPRISM_DATABASE_DRIVER = "mysql";
PHOTOPRISM_DATABASE_NAME = "photoprism"; PHOTOPRISM_DATABASE_NAME = "photoprism";
PHOTOPRISM_DATABASE_SERVER = "/run/mysqld/mysqld.sock"; PHOTOPRISM_DATABASE_SERVER = "/run/mysqld/mysqld.sock";
PHOTOPRISM_DATABASE_USER = "photoprism"; PHOTOPRISM_DATABASE_USER = "photoprism";
};
originalsPath = "/data/photos";
address = "localhost";
#importPath = "/photoprism/imports";
passwordFile = "/passwords/photoprism";
}; };
originalsPath = "/data/photos"; mysql = {
enable = true;
dataDir = "/data/mysql";
package = pkgs.mariadb;
ensureDatabases = [ "photoprism" ];
ensureUsers = [
{
name = "photoprism";
ensurePermissions = {
"photoprism.*" = "ALL PRIVILEGES";
};
}
];
};
address = "localhost"; services.nginx.virtualHosts."photoprism.cgiga.fr" = {
enableACME = true;
#importPath = "/photoprism/imports"; forceSSL = true;
passwordFile = "/passwords/photoprism"; serverAliases = [ ];
}; locations."/" = {
proxyPass = "http://localhost:${toString port}/";
mysql = { proxyWebsockets = true;
enable = true; };
dataDir = "/data/mysql";
package = pkgs.mariadb;
ensureDatabases = [ "photoprism" ];
ensureUsers = [
{
name = "photoprism";
ensurePermissions = {
"photoprism.*" = "ALL PRIVILEGES";
};
}
];
};
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
enableACME = true;
forceSSL = true;
serverAliases = [ ];
locations."/" = {
proxyPass = "http://localhost:${toString port}/";
proxyWebsockets = true;
}; };
}; };
};
} }