NGINX reverse proxy role#
This is a very simple role that will:
- get nginx installed from the debian packaging system
- add prometheus exporter
Nginx Configuration#
The nginx configuration of is stored in this repository, in confs/<ct_inventory_name>/nginx.
Certbot setup#
Before adding a Nginx configuration for your website, you must request a certificate using certbot with the following command:
sudo certbot --nginx -d <domain_name>
Defaults#
---
# Do we want to install the prometheus exporter for nginx ?
reverse_proxy_nginx__install_prometheus: true
# Root folder containing the config files for nginx
# Each of them will bin linked to corresponding folder in /etc/nginx
reverse_proxy_nginx__nginx_git_root_path:
reverse_proxy_nginx__nginx_git_config_path: "{{ reverse_proxy_nginx__nginx_git_root_path }}/confs/{{ inventory_hostname }}/nginx"