grafana
This commit is contained in:
parent
0e89445611
commit
81df01028e
1 changed files with 14 additions and 3 deletions
|
|
@ -7,12 +7,23 @@
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
upstreams."grafana".servers."[${config.services.grafana.settings.server.http_addr}]:${toString config.services.grafana.settings.server.http_port}" = {};
|
||||||
|
#extraConfig = ''
|
||||||
|
# map $http_upgrade $connection_upgrade {
|
||||||
|
# default upgrade;
|
||||||
|
# \'\' close;
|
||||||
|
# }
|
||||||
|
#'';
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
basicAuthFile = config.age.secrets.grafana_basic_auth.path;
|
basicAuthFile = config.age.secrets.grafana_basic_auth.path;
|
||||||
#proxyPass = "http://";
|
proxyPass = "http://grafana";
|
||||||
#recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
return = "418 \"☕️\"";
|
};
|
||||||
|
"/api/live/" = {
|
||||||
|
proxyPass = "http://grafana";
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue