1
0
Fork 0

SSL and loki network config

This commit is contained in:
Felix Albrigtsen 2022-12-20 15:58:12 +01:00
parent c0b5932432
commit fcdce57a3d
2 changed files with 4 additions and 2 deletions

View File

@ -36,9 +36,11 @@
}; };
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = { services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
enableACME = true;
forceSSL = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}"; proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = '' extraConfig = ''
proxy_buffers 8 1024k; proxy_buffers 8 1024k;

View File

@ -7,7 +7,7 @@
auth_enabled = false; auth_enabled = false;
server = { server = {
http_listen_port = 3100; http_listen_port = 3100;
http_listen_address = "127.0.0.1"; http_listen_address = "0.0.0.0";
grpc_listen_port = 9096; grpc_listen_port = 9096;
}; };