spec(eientei): enable photoview

This commit is contained in:
514fpv 2024-03-05 09:39:03 +08:00
parent 076453ee83
commit 3ee7e3b529
Signed by: koishi
SSH key fingerprint: SHA256:652+A2yCgByK6j4+urGiApE+tZbISyelwTnr76Tm+x8

View file

@ -0,0 +1,20 @@
{
services.photoview = {
enable = true;
database.driver = "postgres";
database.string = "postgresql:///photoview?host=/var/run/postgresql";
stateDir = "/nix/persist/service/photoview";
secrets = "/nix/persist/service/photoview/secrets.env" ;
};
services.nginx.virtualHosts."raw.514fpv.io" = {
useACMEHost = ".514fpv.io";
addSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8000";
proxyWebsockets = true;
};
};
global.fs.zfs.mountpoints."/nix/persist/service/photoview" = "service/photoview";
}