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.

39 lines
1.2 KiB

  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log;
  4. pid /run/nginx.pid;
  5. include /usr/share/nginx/modules/*.conf;
  6. events {
  7. worker_connections 1024;
  8. }
  9. http {
  10. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  11. '$status $body_bytes_sent "$http_referer" '
  12. '"$http_user_agent" "$http_x_forwarded_for"';
  13. access_log /var/log/nginx/access.log main;
  14. sendfile on;
  15. tcp_nopush on;
  16. tcp_nodelay on;
  17. keepalive_timeout 65;
  18. types_hash_max_size 2048;
  19. default_type application/octet-stream;
  20. include /etc/nginx/conf.d/*.conf;
  21. server {
  22. listen 80 default_server;
  23. listen [::]:80 default_server;
  24. server_name _;
  25. include /etc/nginx/default.d/*.conf;
  26. location / {
  27. root /usr/share/nginx/html/download;
  28. autoindex on;
  29. autoindex_exact_size off;
  30. autoindex_localtime on;
  31. }
  32. error_page 404 /404.html;
  33. location = /40x.html {
  34. }
  35. error_page 500 502 503 504 /50x.html;
  36. location = /50x.html {
  37. }
  38. }
  39. }