🚀 Add core options

master
Emilien Mantel 2023-05-30 15:30:25 +02:00 committed by Emilien M
parent d262ddd79e
commit c552dd3642
4 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,7 @@ FreeBSD:
- `nginx_pid`: daemon pid file
- `nginx_events_*`: all variables in events 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_module_packages`: package list module to install (Debian)
- `nginx_load_modules`: module list to load (full path), should be used only on FreeBSD

View File

@ -84,6 +84,7 @@ nginx_http_gzip_disable: '"msie6"'
# Custom global configuration
#
nginx_custom_http: []
nginx_custom_core: []
#
# Nginx default

View File

@ -5,6 +5,9 @@
user {{ nginx_user }};
worker_processes {{ nginx_worker_processes }};
pid {{ nginx_pid }};
{% for i in nginx_custom_core %}
{{ i }}
{% endfor %}
include {{ nginx_etc_dir }}/modules-enabled/*.conf;
events {

View File

@ -6,6 +6,8 @@ int_ansible_ssl_dir: '/etc/ansible-ssl'
nginx_worker_processes: 1 # Ansible+FreeBSD can't detect CPU number
nginx_apt_package: 'nginx-extras'
nginx_module_packages: ['libnginx-mod-http-headers-more-filter']
nginx_custom_core:
- 'worker_rlimit_nofile 4242;'
nginx_upstreams:
- name: 'test'