orginase services
This commit is contained in:
parent
7caa83908d
commit
e5f9966329
7 changed files with 80 additions and 34 deletions
18
nixos/services/grafana.nix
Normal file
18
nixos/services/grafana.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{config, ...}:
|
||||
let
|
||||
cfg = config.services.grafana;
|
||||
in
|
||||
{
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
};
|
||||
services.nginx.virtualHosts = {
|
||||
${cfg.settings.server.domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString cfg.settings.server.http_port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue