Add Grafana/Prometheus.
This commit is contained in:
parent
ccc9468d43
commit
557be818da
4 changed files with 61 additions and 8 deletions
|
@ -3,19 +3,22 @@
|
|||
grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
auth.proxy = {
|
||||
enabled = true;
|
||||
header_name = "Remote-User";
|
||||
headers = "Name:Remote-Name Email:Remote-Email Groups:Remote-Groups";
|
||||
server = {
|
||||
root_url = "https://grafana.tailc50184.ts.net";
|
||||
};
|
||||
# "auth.proxy" = {
|
||||
# enabled = true;
|
||||
# header_name = "Remote-User";
|
||||
# headers = "Name:Remote-Name Email:Remote-Email Groups:Remote-Groups";
|
||||
# };
|
||||
};
|
||||
};
|
||||
caddy.virtualHosts."grafana.tailc50184.ts.net".extraConfig = ''
|
||||
bind tailscale/grafana
|
||||
forward_auth localhost:9091 {
|
||||
uri /api/authz/forward-auth
|
||||
copy_headers Remote-User Remote-Name Remote-Email Remote-Groups
|
||||
}
|
||||
# forward_auth localhost:9091 {
|
||||
# uri /api/authz/forward-auth
|
||||
# copy_headers Remote-User Remote-Name Remote-Email Remote-Groups
|
||||
# }
|
||||
reverse_proxy localhost:3000
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue