Restrict access to caddy admin api

This commit is contained in:
Tobias Reisinger 2025-05-06 16:23:32 +02:00
parent 4a853065db
commit 83749c4493
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 11 additions and 8 deletions

View file

@ -39,7 +39,7 @@ prometheus.scrape "node_exporter" {
prometheus.scrape "caddy" {
targets = [
{% for host_data in opentofu.hosts.values() %}
{"__address__" = "{{ host_data.fqdn_vpn }}:2019", "instance" = "{{ host_data.hostname }}"},
{"__address__" = "{{ host_data.fqdn_vpn }}", "instance" = "{{ host_data.hostname }}"},
{% endfor %}
]
forward_to = [prometheus.remote_write.mimir.receiver]