mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-20 03:40:29 +05:00
22 lines
449 B
Nix
22 lines
449 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|