nginx.conf 701 B

1234567891011121314151617181920212223242526272829303132
  1. user nginx;
  2. worker_processes auto;
  3. pcre_jit on;
  4. error_log /var/log/nginx/error.log warn;
  5. include /etc/nginx/modules/*.conf;
  6. events {
  7. worker_connections 1024;
  8. }
  9. http {
  10. default_type application/octet-stream;
  11. server_tokens off;
  12. client_max_body_size 1m;
  13. sendfile on;
  14. tcp_nopush on;
  15. ssl_protocols TLSv1.2 TLSv1.3;
  16. ssl_prefer_server_ciphers on;
  17. ssl_session_cache shared:SSL:2m;
  18. ssl_session_timeout 1h;
  19. ssl_session_tickets off;
  20. gzip_vary on;
  21. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  22. '$status $body_bytes_sent "$http_referer" '
  23. '"$http_user_agent" "$http_x_forwarded_for"';
  24. access_log /var/log/nginx/access.log main;
  25. include /etc/nginx/http.d/*.conf;
  26. }