ansible-infra/chris-here-bitte/templates/Caddyfile
lilly 4a7df9969d
Some checks failed
/ Ansible Lint (push) Failing after 2m17s
tmp
2026-02-26 21:13:10 +01:00

25 lines
749 B
Caddyfile

# {{ ansible_managed }}
grafana.{{ monitoring_server_base_domain }} {
reverse_proxy localhost:3000
}
loki.{{ monitoring_server_base_domain }} {
basicauth {
{% for username, pw in (lookup("community.sops.sops", "monitoring_secrets.enc.yaml", extract='["caddy_basic_auth"]') | from_yaml).items() -%}
{{ username }} {{ pw | password_hash(hashtype="bcrypt") }}
{% endfor %}
}
reverse_proxy localhost:3100
}
mimir.{{ monitoring_server_base_domain }} {
basicauth {
{% for username, pw in (lookup("community.sops.sops", "monitoring_secrets.enc.yaml", extract='["caddy_basic_auth"]') | from_yaml).items() -%}
{{ username }} {{ pw | password_hash(hashtype="bcrypt") }}
{% endfor %}
}
reverse_proxy localhost:9009
}