22 lines
619 B
Markdown
22 lines
619 B
Markdown
Configure Apache with SSL and ACME.sh. Support snippets f.e. for a reverse Proxy
|
||
|
||
Used to be included by other roles, require to have a webserver
|
||
|
||
# Variables
|
||
|
||
* domainname | default(inventory_hostname)
|
||
* docroot |default('/var/www/html')
|
||
* optionalDirectives | default('')
|
||
|
||
```
|
||
optionalDirectives: |
|
||
#reverse Proxy
|
||
ProxyPreserveHost On
|
||
SSLProxyEngine On
|
||
SSLProxyCheckPeerCN on
|
||
SSLProxyCheckPeerExpire on
|
||
RequestHeader set X-Forwarded-Proto "https"
|
||
RequestHeader set X-Forwarded-Port "443"
|
||
ProxyPass "/" "http://127.0.0.1:8000/"
|
||
ProxyPassReverse "/" "http://127.0.0.1:8000/"
|
||
´´´ |