Role to install nginx websites
files | ||
tasks | ||
templates | ||
README.md |
Websites ansible role
This role is here to setup a website with nginx, and letsencrypt certificates using acme.sh.
Without parameters, this setups nginx, php-fpm, with a default http to https redirection and letsencrypt passthrough.
The TLS port is 8443 (on localhost) for sslh passthrough.
Uses the acme_sh role.
Role parameters
websites_enabled
: a list of websites to enable, the first of which will serve as an identifer for acme.sh.
it expects the website-specific nginx config files to be in <playbook root>/templates/nginx/<domain>.conf.j2
. If a file is not found (e.g. because the file serves both www.
and @
), it will continue the process anyway.