/salt-nginx

Salt formula to install nginx, with automatic support for ACME certificate requests using letsencrypt

Primary LanguageSaltStackGNU General Public License v3.0GPL-3.0

Nginx salt formula

Saltstack

Install and configure nginx.

Available states

init.sls

Install the nginx package from the official PPA.

Set default ssl settings in the http context. This settings can be overwritten for server {} block if needed.

To deploy sites, you need to put your configuration files in /etc/nginx/conf.d in another formula.

letsencrypt.sls

Automatically install, configure and update TLS certificates using letsencrypt. It uses lightweight dehydrated implementation in conjunction with a systemd.timer.

See pillar.example for documentation details.

Notes

Tests currently fail, as it doesn't seem to be possible anymore to start nginx within Github Actions. Ideas welcome.