mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-19 19:30:28 +05:00
feat: add grafana
This commit is contained in:
parent
a8191432fa
commit
ab3c57c29e
|
@ -26,6 +26,8 @@
|
|||
./programs/deluge.nix
|
||||
./programs/prosody.nix
|
||||
./programs/yggdrasil.nix
|
||||
|
||||
./programs/grafana.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
|
21
nixos/programs/grafana.nix
Normal file
21
nixos/programs/grafana.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }: {
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 55010;
|
||||
domain = "grafana.comfycamp.space";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."grafana.comfycamp.space" = {
|
||||
useACMEHost = "comfycamp.space";
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:55010";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue