3
0

nginx.conf 631 B

12345678910111213141516171819202122232425262728
  1. worker_processes auto;
  2. worker_cpu_affinity auto;
  3. events {
  4. worker_connections 8096;
  5. }
  6. http {
  7. include mime.types;
  8. default_type application/octet-stream;
  9. server {
  10. listen 80;
  11. charset utf-8;
  12. server_name_in_redirect off;
  13. gzip on;
  14. gzip_buffers 4 16k;
  15. gzip_comp_level 6;
  16. gzip_vary on;
  17. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  18. location / {
  19. try_files $uri $uri/ /index.html;
  20. root /usr/share/nginx/html;
  21. }
  22. }
  23. }