You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.0 KiB

  1. user nobody nogroup;
  2. worker_processes 1;
  3. #error_log logs/error.log;
  4. #error_log logs/error.log notice;
  5. #error_log logs/error.log info;
  6. pid /var/run/nginx.pid;
  7. events {
  8. worker_connections 1024;
  9. }
  10. http {
  11. include mime.types;
  12. default_type application/octet-stream;
  13. sendfile on;
  14. keepalive_timeout 0;
  15. client_body_buffer_size 10K;
  16. client_header_buffer_size 1k;
  17. client_max_body_size 1G;
  18. large_client_header_buffers 2 1k;
  19. gzip on;
  20. gzip_http_version 1.1;
  21. gzip_vary on;
  22. gzip_comp_level 1;
  23. gzip_proxied any;
  24. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
  25. root /www;
  26. server {
  27. listen 80 default_server;
  28. listen [::]:80 default_server;
  29. server_name localhost;
  30. location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
  31. expires 365d;
  32. }
  33. include luci_uwsgi.conf;
  34. }
  35. include /etc/nginx/conf.d/*.conf;
  36. }