18 lines
448 B
Nix
18 lines
448 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ./default.nix ];
|
|
services.traefik.dynamicConfigOptions = {
|
|
http = {
|
|
routers.grafana = {
|
|
rule = "Host(`grafana.xenia.me.uk`)";
|
|
entryPoints = [ "http" "https" ];
|
|
service = "grafana-webinterface";
|
|
tls = { certResolver = "default"; };
|
|
};
|
|
services.grafana-webinterface.loadBalancer.servers =
|
|
[{ url = "http://localhost:3100"; }];
|
|
};
|
|
};
|
|
}
|