1
Fork 0

Specify proper external url for prometheus

This commit is contained in:
prescientmoon 2024-02-24 09:13:36 +01:00
parent b15655f275
commit a5bcd237ad
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -8,7 +8,7 @@ in
services.prometheus = { services.prometheus = {
enable = true; enable = true;
port = 8410; port = 8410;
webExternalUrl = host; webExternalUrl = "https://${host}";
# {{{ Node exporter (system info) # {{{ Node exporter (system info)
exporters = { exporters = {
@ -30,9 +30,7 @@ in
# }}} # }}}
# {{{ Networking & storage # {{{ Networking & storage
services.nginx.virtualHosts.${host} = services.nginx.virtualHosts.${host} =
config.satellite.proxy config.satellite.proxy config.services.prometheus.port { };
config.services.prometheus.port
{ proxyWebsockets = true; };
environment.persistence."/persist/state".directories = [{ environment.persistence."/persist/state".directories = [{
directory = "/var/lib/prometheus2"; directory = "/var/lib/prometheus2";