finalize photoprism configuration
This commit is contained in:
parent
55cb186947
commit
5aceed436c
|
@ -4,10 +4,13 @@
|
||||||
services.photoprism = {
|
services.photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
originalsPath = "/var/lib/photoprism/originals";
|
originalsPath = "/var/lib/photoprism/originals";
|
||||||
|
passwordFile = "/home/usr/wg-keys/photoprism-password";
|
||||||
|
address = "10.100.0.2";
|
||||||
settings = {
|
settings = {
|
||||||
PHOTOPRISM_ADMIN_USER = "usr";
|
PHOTOPRISM_ADMIN_USER = "usr";
|
||||||
PHOTOPRISM_ADMIN_PASSWORD = "usr";
|
|
||||||
PHOTOPRISM_SITE_TITLE = "photos.beepboop.systems";
|
PHOTOPRISM_SITE_TITLE = "photos.beepboop.systems";
|
||||||
|
PHOTOPRISM_SITE_URL = "https://photos.beepboop.systems";
|
||||||
|
PHOTOPRISM_DEFAULT_LOCALE = "en";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./franklincce.nix
|
./franklincce.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
|
./photoprism-bridge.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts."photos.beepboop.systems" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://10.100.0.2:2342";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue