netdata: ui should only be reachable inside tailnet #95
1 changed files with 15 additions and 14 deletions
|
|
@ -55,20 +55,21 @@ in
|
||||||
NETDATA_USER_CONFIG_DIR = "/etc/netdata/conf.d";
|
NETDATA_USER_CONFIG_DIR = "/etc/netdata/conf.d";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."${constants.services.netdata.fqdn}" = {
|
# TODO: move into Tailnet
|
||||||
enableACME = true;
|
# services.nginx.virtualHosts."${constants.services.netdata.fqdn}" = {
|
||||||
forceSSL = true;
|
# enableACME = true;
|
||||||
|
# forceSSL = true;
|
||||||
locations."/" = {
|
#
|
||||||
root = netdata-dashboard;
|
# locations."/" = {
|
||||||
tryFiles = "$uri $uri/ /index.html";
|
# root = netdata-dashboard;
|
||||||
};
|
# tryFiles = "$uri $uri/ /index.html";
|
||||||
|
# };
|
||||||
locations."~ ^/(api|v[0-9]+|netdata.conf|registry|stream|version.txt)(/|$)" = {
|
#
|
||||||
proxyPass = "http://127.0.0.1:${toString constants.services.netdata.port}";
|
# locations."~ ^/(api|v[0-9]+|netdata.conf|registry|stream|version.txt)(/|$)" = {
|
||||||
recommendedProxySettings = true;
|
# proxyPass = "http://127.0.0.1:${toString constants.services.netdata.port}";
|
||||||
};
|
# recommendedProxySettings = true;
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
services.journald.storage = "persistent";
|
services.journald.storage = "persistent";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue