2024-03-07 08:39:56 +08:00
|
|
|
{
|
|
|
|
services.photoprism = {
|
|
|
|
enable = true;
|
|
|
|
originalsPath = "/run/storage/aerial";
|
|
|
|
settings.PHOTOPRISM_ADMIN_USER = "koishi";
|
2024-03-07 08:49:53 +08:00
|
|
|
settings.PHOTOPRISM_FFMPEG_ENCODER = "intel";
|
2024-03-07 08:39:56 +08:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
}
|