Compare commits

...

2 Commits

Author SHA1 Message Date
stupidcomputer 6aa7029818 add grafana 2024-10-28 00:10:19 -05:00
stupidcomputer 5aceed436c finalize photoprism configuration 2024-10-28 00:10:05 -05:00
5 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,13 @@
{ lib, config, pkgs, ...}:
{
services.grafana = {
settings = {
server = {
http_addr = "10.100.0.2";
http_port = 9802;
domain = "grafana.beepboop.systems";
};
};
};
}

View File

@ -4,10 +4,13 @@
services.photoprism = {
enable = true;
originalsPath = "/var/lib/photoprism/originals";
passwordFile = "/home/usr/wg-keys/photoprism-password";
address = "10.100.0.2";
settings = {
PHOTOPRISM_ADMIN_USER = "usr";
PHOTOPRISM_ADMIN_PASSWORD = "usr";
PHOTOPRISM_SITE_TITLE = "photos.beepboop.systems";
PHOTOPRISM_SITE_URL = "https://photos.beepboop.systems";
PHOTOPRISM_DEFAULT_LOCALE = "en";
};
};
}

View File

@ -17,6 +17,7 @@
./nginx.nix
./franklincce.nix
./wireguard.nix
./photoprism-bridge.nix
];
nix = {

View File

@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
{
services.nginx.virtualHosts."grafana.beepboop.systems" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://10.100.0.2:9802";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_buffering off;
'';
};
};
}

View File

@ -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;
'';
};
};
}