1
0
Fork 0
forked from infra/ansible

Proxies: Only monitor registry.fpo in prod

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
Greg Sutcliffe 2026-07-15 10:13:43 +01:00
commit 000633d113
Signed by: gwmngilfen
SSH key fingerprint: SHA256:dNHcz65ApR68w2TkCIAXDBdt4oNL62Fyx48U7dXWuk0

View file

@ -9,3 +9,9 @@ UserParameter=httpd.curl.moby,/usr/bin/curl -s --resolve registry{{env_suffix}}.
# this is ugly, but we need to change ".stg" into "stg."
{% set prefix = (env_suffix | regex_replace('^\.(.+)$', '\\1.')) %}
UserParameter=httpd.curl.rmo,/usr/bin/curl -s --resolve {{ prefix }}release-monitoring.org:443:127.0.0.1 https://{{ prefix }}release-monitoring.org/ | /usr/bin/grep "Watch for releases of your favorite projects"
# registry monitoring is only done in prod
{% if env != 'staging' %}
UserParameter=httpd.curl.flatpaks,/usr/bin/curl -s --resolve registry.fedoraproject.org:443:127.0.0.1 'https://registry.fedoraproject.org/v2/_catalog?last=fedora' | /usr/bin/grep "fedora"
UserParameter=httpd.curl.images,/usr/bin/curl -s --resolve registry.fedoraproject.org:443:127.0.0.1 'https://registry.fedoraproject.org/v2/fedora/tags/list' | /usr/bin/grep "rawhide"
{% endif %}