diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile
index e0fa31e..cda782e 100644
--- a/lotus-land-story/templates/Caddyfile
+++ b/lotus-land-story/templates/Caddyfile
@@ -1,6 +1,7 @@
{
servers {
metrics
+
trusted_proxies static private_ranges {{ trusted_proxies }}
trusted_proxies_strict
}
@@ -35,38 +36,37 @@ http://setup {
### Monitoring
-# TODO Update this, since it's deprecated
-:2019 {
- metrics
-}
-
cadvisor {
tls internal
bind tailscale/cadvisor
reverse_proxy cadvisor:8080
}
+grafana {
+ tls internal
+ bind tailscale/grafana
+ tailscale_auth
+ reverse_proxy grafana:3000 {
+ header_up X-Webauth-User {http.auth.user.tailscale_user}
+ }
+}
+
loki {
tls internal
bind tailscale/loki
reverse_proxy loki:3100
}
+:2019 {
+ metrics /metrics
+}
+
prometheus {
tls internal
bind tailscale/prometheus
reverse_proxy prometheus:9090
}
-grafana {
- tls internal
- bind tailscale/grafana
- tailscale_auth
- reverse_proxy grafana:3000 {
- header_up X-Webauth-User {http.auth.user.tailscale_user}
- }
-}
-
### Services
rss {