Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Do not edit this file. For information on how to customize settings, see
- # https://serverpilot.io/community/articles/customize-nginx-settings.html
- worker_processes 1;
- error_log /var/log/nginx-sp/error.log;
- pid /var/run/nginx-sp.pid;
- events {
- worker_connections 8192;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- server_tokens off;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for" '
- '$request_length $request_time '
- '"$upstream_response_length" "$upstream_response_time"';
- access_log /var/log/nginx-sp/access.log main;
- server_names_hash_max_size 65536;
- server_names_hash_bucket_size 1024; # Max length of domain names.
- types_hash_max_size 2048;
- proxy_read_timeout 3600;
- sendfile on;
- keepalive_timeout 65;
- client_max_body_size 128M;
- gzip on;
- # text/html does not need to be listed as it is always included by nginx.
- # WOFF files are already compressed, so application/x-font-woff is not needed.
- gzip_types text/plain text/css application/json
- text/javascript application/javascript application/x-javascript
- text/xml application/xml application/xml+rss image/svg+xml
- application/vnd.ms-fontobject application/x-font-ttf font/opentype;
- gzip_vary on;
- gzip_disable "msie6";
- # CloudFlare proxy addresses.
- # Do not modify this list. If you believe the CloudFlare proxy address list is
- # out of date, please contact support@serverpilot.io.
- set_real_ip_from 199.27.128.0/21;
- set_real_ip_from 173.245.48.0/20;
- set_real_ip_from 103.21.244.0/22;
- set_real_ip_from 103.22.200.0/22;
- set_real_ip_from 103.31.4.0/22;
- set_real_ip_from 141.101.64.0/18;
- set_real_ip_from 108.162.192.0/18;
- set_real_ip_from 190.93.240.0/20;
- set_real_ip_from 188.114.96.0/20;
- set_real_ip_from 197.234.240.0/22;
- set_real_ip_from 198.41.128.0/17;
- set_real_ip_from 162.158.0.0/15;
- set_real_ip_from 104.16.0.0/12;
- set_real_ip_from 2400:cb00::/32;
- set_real_ip_from 2606:4700::/32;
- set_real_ip_from 2803:f800::/32;
- set_real_ip_from 2405:b500::/32;
- set_real_ip_from 2405:8100::/32;
- real_ip_header X-Forwarded-For;
- include /etc/nginx-sp/conf.d/*.conf;
- include /etc/nginx-sp/vhosts.d/*.conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement