vhost: Add option to find and replace headers in reverse proxy

This commit is contained in:
uumas
2026-03-11 22:13:29 +02:00
parent 080c5b4dc2
commit 3013d3edf0
4 changed files with 83 additions and 0 deletions

View File

@@ -22,6 +22,12 @@
{% for header in matcher.delete_headers %}
header -{{ header }}
{% endfor %}
{% for header in matcher.find_replace_headers %}
header {
{{ header.header }} `^{{ header.find }}$` `{{ header.replace }}`
defer
}
{% endfor %}
{% for header in matcher.headers | dict2items %}
header {{ header.key }} `{{ header.value }}`
{% endfor %}