vhost: Add support for http basic auth

This commit is contained in:
uumas
2023-05-09 21:39:37 +03:00
parent ac43d9288a
commit e4dcc74610
4 changed files with 34 additions and 0 deletions

View File

@@ -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