ansible-role-website/README.md

22 lines
619 B
Markdown
Raw Normal View History

2022-11-29 18:13:09 +01:00
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/"
´´´