vhost: Add support for http basic auth
This commit is contained in:
@@ -33,6 +33,17 @@ argument_specs:
|
||||
required: false
|
||||
default: {}
|
||||
|
||||
vhost_basicauth:
|
||||
description: Whether to require basic auth for the vhost
|
||||
type: bool
|
||||
required: false
|
||||
default: false
|
||||
vhost_basicauth_users:
|
||||
description: A dict of basic auth users and their password hashes. Required if vhost_basicauth is true
|
||||
type: dict
|
||||
required: false
|
||||
default: {}
|
||||
|
||||
proxy_target_port:
|
||||
description: Port where to proxy requests to. Only applicable if vhost_type is reverse_proxy
|
||||
type: int
|
||||
@@ -107,6 +118,16 @@ argument_specs:
|
||||
required: false
|
||||
default: "{{ vhost_headers }}"
|
||||
|
||||
basicauth:
|
||||
description: Whether to require basic auth for the location
|
||||
type: bool
|
||||
required: false
|
||||
default: "{{ vhost_basicauth }}"
|
||||
basicauth_users:
|
||||
description: A dict of basic auth users and their password hashes. Required if basicauth is true
|
||||
type: dict
|
||||
default: "{{ vhost_basicauth_users }}"
|
||||
|
||||
proxy_target_port:
|
||||
description: Port where to proxy requests to. Only applicable if type is reverse_proxy.
|
||||
type: int
|
||||
|
||||
Reference in New Issue
Block a user