Files
fedora-infra_ansible/roles/httpd/reverseproxy/templates/reversepassproxy.debuginfod.conf
Frank Ch. Eigler d4a36c7c74 debuginfod: add /metadata* reverse proxy URL prefix
Upcoming versions of elfutils/debuginfod support a new webapi URL
prefix.
2024-06-07 14:06:58 -04:00

28 lines
835 B
Plaintext

AllowEncodedSlashes NoDecode
# Reverse-proxy /buildid/* queries
ProxyPassMatch "^/buildid/(.*)$" "{{proxyurl}}/buildid/$1" {{proxyopts}}
# Reverse-proxy /metadata* queries
ProxyPassMatch "^/metadata(.*)$" "{{proxyurl}}/metadata$1" {{proxyopts}}
# Reverse-proxy /metrics - without (...) grouping op, URL just gets copied
ProxyPassMatch "^/metrics$" "{{proxyurl}}" {{proxyopts}}
ProxyPassReverse / {{proxyurl}}/
# ... but not the top level, which is instead redirected
ProxyPass / !
# Redirect / URL over to wiki
Redirect permanent / https://fedoraproject.org/wiki/Debuginfod
# test it with:
#
# curl -i https://debuginfod.fedoraproject.org/
# curl -i https://debuginfod.fedoraproject.org/metrics
# curl -i https://debuginfod.fedoraproject.org/buildid/998feb12788309aa27465206ce4209be13ef5d9a/debuginfo
#
# (and ditto for .stg.)