🚀 Add core options
parent
d262ddd79e
commit
c552dd3642
|
@ -66,6 +66,7 @@ FreeBSD:
|
||||||
- `nginx_pid`: daemon pid file
|
- `nginx_pid`: daemon pid file
|
||||||
- `nginx_events_*`: all variables in events block
|
- `nginx_events_*`: all variables in events block
|
||||||
- `nginx_http_*`: all variables in http block
|
- `nginx_http_*`: all variables in http block
|
||||||
|
- `nginx_custom_core`: instructions list (for core, will put data in `/etc/nginx/nginx.conf`)
|
||||||
- `nginx_custom_http`: instructions list (will put data in `/etc/nginx/conf.d/custom.conf`)
|
- `nginx_custom_http`: instructions list (will put data in `/etc/nginx/conf.d/custom.conf`)
|
||||||
- `nginx_module_packages`: package list module to install (Debian)
|
- `nginx_module_packages`: package list module to install (Debian)
|
||||||
- `nginx_load_modules`: module list to load (full path), should be used only on FreeBSD
|
- `nginx_load_modules`: module list to load (full path), should be used only on FreeBSD
|
||||||
|
|
|
@ -84,6 +84,7 @@ nginx_http_gzip_disable: '"msie6"'
|
||||||
# Custom global configuration
|
# Custom global configuration
|
||||||
#
|
#
|
||||||
nginx_custom_http: []
|
nginx_custom_http: []
|
||||||
|
nginx_custom_core: []
|
||||||
|
|
||||||
#
|
#
|
||||||
# Nginx default
|
# Nginx default
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
user {{ nginx_user }};
|
user {{ nginx_user }};
|
||||||
worker_processes {{ nginx_worker_processes }};
|
worker_processes {{ nginx_worker_processes }};
|
||||||
pid {{ nginx_pid }};
|
pid {{ nginx_pid }};
|
||||||
|
{% for i in nginx_custom_core %}
|
||||||
|
{{ i }}
|
||||||
|
{% endfor %}
|
||||||
include {{ nginx_etc_dir }}/modules-enabled/*.conf;
|
include {{ nginx_etc_dir }}/modules-enabled/*.conf;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
|
|
|
@ -6,6 +6,8 @@ int_ansible_ssl_dir: '/etc/ansible-ssl'
|
||||||
nginx_worker_processes: 1 # Ansible+FreeBSD can't detect CPU number
|
nginx_worker_processes: 1 # Ansible+FreeBSD can't detect CPU number
|
||||||
nginx_apt_package: 'nginx-extras'
|
nginx_apt_package: 'nginx-extras'
|
||||||
nginx_module_packages: ['libnginx-mod-http-headers-more-filter']
|
nginx_module_packages: ['libnginx-mod-http-headers-more-filter']
|
||||||
|
nginx_custom_core:
|
||||||
|
- 'worker_rlimit_nofile 4242;'
|
||||||
|
|
||||||
nginx_upstreams:
|
nginx_upstreams:
|
||||||
- name: 'test'
|
- name: 'test'
|
||||||
|
|
Loading…
Reference in New Issue