vhost: Support manipulating headers
This commit is contained in:
@@ -37,10 +37,16 @@ argument_specs:
|
||||
- caddy
|
||||
- none
|
||||
vhost_headers:
|
||||
description: dict of headers and their values
|
||||
description: Dict of response headers and their values
|
||||
type: dict
|
||||
required: false
|
||||
default: {}
|
||||
vhost_delete_headers:
|
||||
description: List of reponse headers to delete
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
default: []
|
||||
|
||||
vhost_basicauth:
|
||||
description: Whether to require basic auth for the vhost
|
||||
@@ -70,6 +76,12 @@ argument_specs:
|
||||
choices:
|
||||
- http
|
||||
- https
|
||||
proxy_delete_headers:
|
||||
description: List of headers to delete from proxied requests
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
default: []
|
||||
|
||||
redirect_target:
|
||||
description: "Only applicable if vhost_type is redirect. Example: https://www.domain.tld/location"
|
||||
@@ -122,10 +134,16 @@ argument_specs:
|
||||
- redirect
|
||||
- respond
|
||||
headers:
|
||||
description: dict of headers and their values
|
||||
description: Dict of response headers and their values
|
||||
type: dict
|
||||
required: false
|
||||
default: "{{ vhost_headers }}"
|
||||
delete_headers:
|
||||
description: List of response headers to delete
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
default: "{{ vhost_delete_headers }}"
|
||||
|
||||
basicauth:
|
||||
description: Whether to require basic auth for the location
|
||||
@@ -155,6 +173,12 @@ argument_specs:
|
||||
choices:
|
||||
- http
|
||||
- https
|
||||
proxy_delete_headers:
|
||||
description: List of request headers to delete from proxied requests
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
default: "{{ proxy_delete_headers }}"
|
||||
|
||||
redirect_target:
|
||||
description: "Only applicable if vhost_type is redirect. Example: https://www.domain.tld/location"
|
||||
|
||||
Reference in New Issue
Block a user