Go to file
2023-06-28 22:58:27 +02:00
defaults added defaults 2023-06-28 22:58:11 +02:00
handlers first commit 2022-11-29 18:09:10 +01:00
tasks added defaults, removed old code 2023-06-28 22:58:27 +02:00
templates first commit 2022-11-29 18:09:10 +01:00
LICENSE added License and Readme 2022-11-29 18:13:09 +01:00
README.md added License and Readme 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/"
´´´