ansible-role-website/README.md

619 B
Raw Blame History

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