1
0
Fork 0

Services: fix Netdata

This commit is contained in:
Aires 2024-08-04 18:27:55 -04:00
parent 2ec01e9bc1
commit 397dd6bed3
2 changed files with 4 additions and 3 deletions

View file

@ -181,6 +181,10 @@ in
enable = true; enable = true;
domain = config.secrets.networking.primaryDomain; domain = config.secrets.networking.primaryDomain;
url = config.secrets.services.netdata.url; url = config.secrets.services.netdata.url;
auth = {
user = config.users.users.aires.name;
password = config.secrets.services.netdata.password;
};
}; };
nginx = { nginx = {
enable = true; enable = true;

View file

@ -48,14 +48,11 @@ in
}; };
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:19999"; proxyPass = "http://127.0.0.1:19999";
proxyWebsockets = true;
extraConfig = '' extraConfig = ''
# Taken from https://learn.netdata.cloud/docs/netdata-agent/configuration/running-the-netdata-agent-behind-a-reverse-proxy/nginx # Taken from https://learn.netdata.cloud/docs/netdata-agent/configuration/running-the-netdata-agent-behind-a-reverse-proxy/nginx
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_pass_request_headers on; proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive"; proxy_set_header Connection "keep-alive";
proxy_store off; proxy_store off;