nginx.conf.j2 938 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. user {{ nginx_user }};
  2. error_log /var/log/nginx/error.log warn;
  3. pid /var/run/nginx.pid;
  4. worker_processes {{ nginx_worker_processes }};
  5. events {
  6. worker_connections {{ nginx_worker_connections }};
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. server_names_hash_bucket_size 64;
  12. client_max_body_size {{ nginx_client_max_body_size }};
  13. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  14. '$status $body_bytes_sent "$http_referer" '
  15. '"$http_user_agent" "$http_x_forwarded_for"';
  16. access_log /var/log/nginx/access.log main buffer=16k;
  17. sendfile on;
  18. #tcp_nopush on;
  19. keepalive_timeout {{ nginx_keepalive_timeout }};
  20. #gzip on;
  21. {% if nginx_proxy_cache_path %}
  22. proxy_cache_path {{ nginx_proxy_cache_path }};
  23. {% endif %}
  24. include /etc/nginx/conf.d/*.conf;
  25. }