Compare commits
2 Commits
d40438abff
...
6aa7029818
Author | SHA1 | Date | |
---|---|---|---|
6aa7029818 | |||
5aceed436c |
13
boxes/copernicus/services/grafana.nix
Normal file
13
boxes/copernicus/services/grafana.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -5,6 +5,7 @@
|
||||
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_SITE_TITLE = "photos.beepboop.systems";
|
||||
|
16
boxes/netbox/grafana-bridge.nix
Normal file
16
boxes/netbox/grafana-bridge.nix
Normal 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user