orginase services

This commit is contained in:
Tristan 2024-02-17 15:50:18 +00:00
parent 7caa83908d
commit e5f9966329
7 changed files with 80 additions and 34 deletions

View 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}";
};
};
};
}