Role to install nginx websites
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
684 B

2 years ago
# Websites ansible role
This role is here to setup a website with nginx, and letsencrypt certificates using
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
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.