nixos/hosts/hub/apps/grafana.nix

26 lines
675 B
Nix
Raw Normal View History

2025-04-18 19:40:45 -05:00
{
services = {
grafana = {
enable = true;
settings = {
2025-04-24 14:58:51 -05:00
server = {
root_url = "https://grafana.tailc50184.ts.net";
2025-04-18 19:40:45 -05:00
};
2025-04-24 14:58:51 -05:00
# "auth.proxy" = {
# enabled = true;
# header_name = "Remote-User";
# headers = "Name:Remote-Name Email:Remote-Email Groups:Remote-Groups";
# };
2025-04-18 19:40:45 -05:00
};
};
caddy.virtualHosts."grafana.tailc50184.ts.net".extraConfig = ''
bind tailscale/grafana
2025-04-24 14:58:51 -05:00
# forward_auth localhost:9091 {
# uri /api/authz/forward-auth
# copy_headers Remote-User Remote-Name Remote-Email Remote-Groups
# }
2025-04-18 19:40:45 -05:00
reverse_proxy localhost:3000
'';
};
}