ansible-role-website/README.md

22 lines
619 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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/"
´´´