diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-05-24 15:25:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 15:25:31 +0200 |
commit | 9cde20b45783bc874422a415c503fc79875115e5 (patch) | |
tree | 4a87e95554462e45b482b260309d7da67cb8d694 /interface-definitions/include | |
parent | 371517c4dcf91d07a2145f0a1a1dc52762464ed6 (diff) | |
parent | 6c25888fe0e3773cb21b31ffac08c44af5d68a68 (diff) | |
download | vyos-1x-9cde20b45783bc874422a415c503fc79875115e5.tar.gz vyos-1x-9cde20b45783bc874422a415c503fc79875115e5.zip |
Merge pull request #3512 from vyos/mergify/bp/sagitta/pr-3487
reverse-proxy: T6370: Set custom HTTP headers in reverse-proxy responses (backport #3487)
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/haproxy/http-response-headers.xml.i | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/interface-definitions/include/haproxy/http-response-headers.xml.i b/interface-definitions/include/haproxy/http-response-headers.xml.i new file mode 100644 index 000000000..9e7ddfd28 --- /dev/null +++ b/interface-definitions/include/haproxy/http-response-headers.xml.i @@ -0,0 +1,29 @@ +<!-- include start from haproxy/http-response-headers.xml.i --> +<tagNode name="http-response-headers"> + <properties> + <help>Headers to include in HTTP response</help> + <valueHelp> + <format>txt</format> + <description>HTTP header name</description> + </valueHelp> + <constraint> + <regex>[-a-zA-Z]+</regex> + </constraint> + <constraintErrorMessage>Header names must only include alphabetical characters and hyphens</constraintErrorMessage> + </properties> + <children> + <leafNode name="value"> + <properties> + <help>HTTP header value</help> + <valueHelp> + <format>txt</format> + <description>HTTP header value</description> + </valueHelp> + <constraint> + <regex>[[:ascii:]]{1,256}</regex> + </constraint> + </properties> + </leafNode> + </children> +</tagNode> +<!-- include end --> |