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.

54 lines
902 B

  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. root /www;
  25. server {
  26. listen 80 default_server;
  27. listen [::]:80 default_server;
  28. server_name localhost;
  29. location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
  30. expires 365d;
  31. }
  32. location / {
  33. index index.html;
  34. include luci_uwsgi.conf;
  35. }
  36. location /luci-static {
  37. }
  38. }
  39. }