nginx.conf 988 B

12345678910111213141516171819202122232425262728293031323334353637
  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log notice;
  4. pid /var/run/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  12. '$status $body_bytes_sent "$http_referer" '
  13. '"$http_user_agent" "$http_x_forwarded_for"';
  14. access_log /var/log/nginx/access.log main;
  15. sendfile on;
  16. #tcp_nopush on;
  17. keepalive_timeout 65;
  18. #gzip on;
  19. #全局SSL配置
  20. ssl_session_timeout 5m;
  21. ssl_prefer_server_ciphers on;
  22. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  23. ssl_certificate /etc/letsencrypt/live/zhixinghe1.top/fullchain.pem;
  24. ssl_certificate_key /etc/letsencrypt/live/zhixinghe1.top/privkey.pem;
  25. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  26. include /etc/nginx/conf.d/*.conf;
  27. }