nginx.conf.j2 669 B

123456789101112131415161718192021222324252627282930313233
  1. #{{ ansible_managed }}
  2. user {{ nginx_user }} {{ nginx_group }};
  3. worker_processes {{ nginx_worker_processes }};
  4. {% if nginx_pid_file %}
  5. pid {{ nginx_pid_file }};
  6. {% endif %}
  7. worker_rlimit_nofile {{ nginx_worker_rlimit_nofile }};
  8. events {
  9. {% for v in nginx_events_params %}
  10. {{ v }};
  11. {% endfor %}
  12. }
  13. http {
  14. include {{ nginx_conf_dir }}/mime.types;
  15. default_type application/octet-stream;
  16. {% for v in nginx_http_params %}
  17. {{ v }};
  18. {% endfor %}
  19. include {{ nginx_conf_dir }}/conf.d/*.conf;
  20. include {{ nginx_conf_dir }}/sites-enabled/*;
  21. }
  22. {% if nginx_daemon_mode == "off" %}
  23. daemon off;
  24. {% endif %}