Install upstream Nginx.
TODO: Add configuration options.
nginx_keep_default_configs
: Iftrue
keep the default site configuration files innginx/conf.d
, defaultfalse
(disable them)nginx_stable_repo
: Iffalse
use the mainline instead of stable repo, defaulttrue
nginx_version
: The packaged version of Nginx, optional, available versions depends onnginx_stable_repo
. Not supported on Ubuntu.nginx_systemd_setup
: Start/restart nginx using systemd, defaulttrue
, if you want to manage Nginx yourself set this tofalse
Log rotation:
nginx_logrotate_interval
: Rotate log files at this interval, defaultdaily
nginx_logrotate_backlog_size
: Number of backlog files to keep, default366