Add a vhost role

This commit is contained in:
uumas
2022-11-18 05:38:17 +02:00
parent 1340b825e1
commit 3974e6eb46
8 changed files with 143 additions and 1 deletions

View File

@@ -9,6 +9,6 @@ admin_email: 'admin@domain.tld'
These variables are used by multiple roles and have the following default values:
```
reverse_proxy_type: caddy # Allowed values: caddy, none
web_server: caddy # Allowed values: caddy, none
```

44
docs/vhost.md Normal file
View File

@@ -0,0 +1,44 @@
# Required variables
These variables are required for this role to function. Example values provided
```
vhost_id: myservice # A unique identifier for this vhost. Not visible to end users.
vhost_type: reverse_proxy # Supported values: reverse_proxy, redirect
vhost_domains:
- www.domain.tld
- domain.tld
```
# Optional variables
These variables have the following default values.
```
web_server: caddy # Supported values: caddy, none
```
# Variables specific to vhost type
## reverse\_proxy
Required:
```
proxy_target_port: 8080
```
Optional:
```
proxy_target_host: localhost
proxy_target_protocol: http
```
## redirect
Required:
```
redirect_target: https://www.domain.tld/location
```
Optional:
```
redirect_type: temporary # Supported values: temporary, permanent
```