From Tom, 4 Weeks ago, written in Plain Text.
This paste will check out in 1 Second.
Embed
  1. user www-data;
  2. worker_processes auto;
  3. pid /var/run/nginx.pid;
  4. events {
  5. worker_connections 1024;
  6. multi_accept on; use epoll;
  7. }
  8. http {
  9. server_names_hash_bucket_size 64;
  10. access_log /var/log/nginx/access.log;
  11. error_log /var/log/nginx/error.log warn;
  12. set_real_ip_from 127.0.0.1;
  13. #optional, Sie können das eigene Subnetz ergänzen, bspw.:
  14. # set_real_ip_from 192.168.200.0/24;
  15. real_ip_header X-Forwarded-For;
  16. real_ip_recursive on;
  17. include /etc/nginx/mime.types;
  18. default_type application/octet-stream;
  19. sendfile on;
  20. send_timeout 3600;
  21. tcp_nopush on;
  22. tcp_nodelay on;
  23. open_file_cache max=500 inactive=10m;
  24. open_file_cache_errors on;
  25. keepalive_timeout 65;
  26. reset_timedout_connection on;
  27. server_tokens off;
  28. resolver 127.0.0.53 valid=30s;
  29. resolver_timeout 5s;
  30. include /etc/nginx/conf.d/*.conf;
  31. }
  32.