nginx.conf 610 B

12345678910111213141516171819202122232425
  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. server {
  7. listen 80;
  8. server_name localhost;
  9. root /usr/share/nginx/html;
  10. index index.html index.htm;
  11. include /etc/nginx/mime.types;
  12. gzip on;
  13. gzip_min_length 1000;
  14. gzip_proxied expired no-cache no-store private auth;
  15. gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  16. location / {
  17. try_files $uri $uri/ /index.html;
  18. }
  19. }
  20. }