Role to install nginx websites
Go to file
2021-01-04 22:28:13 +01:00
files Initial commit 2021-01-04 22:28:13 +01:00
tasks Initial commit 2021-01-04 22:28:13 +01:00
templates Initial commit 2021-01-04 22:28:13 +01:00
README.md Initial commit 2021-01-04 22:28:13 +01:00

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.