Advertisement
Guest User

Untitled

a guest
Feb 17th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. # Do not edit this file. For information on how to customize settings, see
  2. # https://serverpilot.io/community/articles/customize-nginx-settings.html
  3.  
  4. worker_processes 1;
  5.  
  6. error_log /var/log/nginx-sp/error.log;
  7.  
  8. pid /var/run/nginx-sp.pid;
  9.  
  10. events {
  11. worker_connections 8192;
  12. }
  13.  
  14. http {
  15. include mime.types;
  16. default_type application/octet-stream;
  17. server_tokens off;
  18.  
  19. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  20. '$status $body_bytes_sent "$http_referer" '
  21. '"$http_user_agent" "$http_x_forwarded_for" '
  22. '$request_length $request_time '
  23. '"$upstream_response_length" "$upstream_response_time"';
  24.  
  25. access_log /var/log/nginx-sp/access.log main;
  26.  
  27. server_names_hash_max_size 65536;
  28. server_names_hash_bucket_size 1024; # Max length of domain names.
  29. types_hash_max_size 2048;
  30.  
  31. proxy_read_timeout 3600;
  32.  
  33. sendfile on;
  34.  
  35. keepalive_timeout 65;
  36.  
  37. client_max_body_size 128M;
  38.  
  39. gzip on;
  40. # text/html does not need to be listed as it is always included by nginx.
  41. # WOFF files are already compressed, so application/x-font-woff is not needed.
  42. gzip_types text/plain text/css application/json
  43. text/javascript application/javascript application/x-javascript
  44. text/xml application/xml application/xml+rss image/svg+xml
  45. application/vnd.ms-fontobject application/x-font-ttf font/opentype;
  46. gzip_vary on;
  47. gzip_disable "msie6";
  48.  
  49. # CloudFlare proxy addresses.
  50. # Do not modify this list. If you believe the CloudFlare proxy address list is
  51. # out of date, please contact support@serverpilot.io.
  52. set_real_ip_from 199.27.128.0/21;
  53. set_real_ip_from 173.245.48.0/20;
  54. set_real_ip_from 103.21.244.0/22;
  55. set_real_ip_from 103.22.200.0/22;
  56. set_real_ip_from 103.31.4.0/22;
  57. set_real_ip_from 141.101.64.0/18;
  58. set_real_ip_from 108.162.192.0/18;
  59. set_real_ip_from 190.93.240.0/20;
  60. set_real_ip_from 188.114.96.0/20;
  61. set_real_ip_from 197.234.240.0/22;
  62. set_real_ip_from 198.41.128.0/17;
  63. set_real_ip_from 162.158.0.0/15;
  64. set_real_ip_from 104.16.0.0/12;
  65. set_real_ip_from 2400:cb00::/32;
  66. set_real_ip_from 2606:4700::/32;
  67. set_real_ip_from 2803:f800::/32;
  68. set_real_ip_from 2405:b500::/32;
  69. set_real_ip_from 2405:8100::/32;
  70. real_ip_header X-Forwarded-For;
  71.  
  72. include /etc/nginx-sp/conf.d/*.conf;
  73. include /etc/nginx-sp/vhosts.d/*.conf;
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement