1
0

nginx.conf 736 B

123456789101112131415161718192021222324252627282930313233
  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. include /etc/nginx/mime.types;
  11. default_type application/octet-stream;
  12. server_tokens off;
  13. client_max_body_size 1m;
  14. sendfile on;
  15. tcp_nopush on;
  16. ssl_protocols TLSv1.2 TLSv1.3;
  17. ssl_prefer_server_ciphers on;
  18. ssl_session_cache shared:SSL:2m;
  19. ssl_session_timeout 1h;
  20. ssl_session_tickets off;
  21. gzip_vary on;
  22. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  23. '$status $body_bytes_sent "$http_referer" '
  24. '"$http_user_agent" "$http_x_forwarded_for"';
  25. access_log /var/log/nginx/access.log main;
  26. include /etc/nginx/http.d/*.conf;
  27. }