fix
This commit is contained in:
parent
81df01028e
commit
214852da11
1 changed files with 24 additions and 22 deletions
|
|
@ -1,29 +1,31 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts."monitoring.${config.networking.domain}" = {
|
services.nginx = {
|
||||||
default = true;
|
|
||||||
quic = true;
|
|
||||||
kTLS = true;
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
upstreams."grafana".servers."[${config.services.grafana.settings.server.http_addr}]:${toString config.services.grafana.settings.server.http_port}" = {};
|
upstreams."grafana".servers."[${config.services.grafana.settings.server.http_addr}]:${toString config.services.grafana.settings.server.http_port}" = {};
|
||||||
#extraConfig = ''
|
virtualHosts."monitoring.${config.networking.domain}" = {
|
||||||
# map $http_upgrade $connection_upgrade {
|
default = true;
|
||||||
# default upgrade;
|
quic = true;
|
||||||
# \'\' close;
|
kTLS = true;
|
||||||
# }
|
forceSSL = true;
|
||||||
#'';
|
enableACME = true;
|
||||||
locations = {
|
#extraConfig = ''
|
||||||
"/" = {
|
# map $http_upgrade $connection_upgrade {
|
||||||
basicAuthFile = config.age.secrets.grafana_basic_auth.path;
|
# default upgrade;
|
||||||
proxyPass = "http://grafana";
|
# \'\' close;
|
||||||
recommendedProxySettings = true;
|
# }
|
||||||
};
|
#'';
|
||||||
"/api/live/" = {
|
locations = {
|
||||||
proxyPass = "http://grafana";
|
"/" = {
|
||||||
recommendedProxySettings = true;
|
basicAuthFile = config.age.secrets.grafana_basic_auth.path;
|
||||||
proxyWebsockets = true;
|
proxyPass = "http://grafana";
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
};
|
||||||
|
"/api/live/" = {
|
||||||
|
proxyPass = "http://grafana";
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue