feat(eientei): enable photoprism

This commit is contained in:
514fpv 2024-03-07 08:39:56 +08:00
parent 597c18766d
commit 48fe60c90b
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 24 additions and 20 deletions

View file

@ -0,0 +1,24 @@
{
services.photoprism = {
enable = true;
originalsPath = "/run/storage/aerial";
settings.PHOTOPRISM_ADMIN_USER = "koishi";
passwordFile = "/var/lib/photoprism/password";
};
services.nginx.virtualHosts."raw.514fpv.io" = {
useACMEHost = ".514fpv.io";
addSSL = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:2342";
proxyWebsockets = true;
};
};
environment.persistence."/nix/persist/fhs".directories = [
"/var/lib/photoprism"
];
}