Skip to content

Commit b061002

Browse files
committed
Update nginx, remove duplicated proxy settings.
1 parent 98cb616 commit b061002

File tree

5 files changed

+10
-55
lines changed

5 files changed

+10
-55
lines changed

install/debian/8/nginx/nginx.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ http {
3333
server_names_hash_bucket_size 512;
3434
charset utf-8;
3535

36+
# FastCGI settings
3637
fastcgi_buffers 4 256k;
3738
fastcgi_buffer_size 256k;
3839
fastcgi_busy_buffers_size 256k;
@@ -43,6 +44,7 @@ http {
4344
fastcgi_cache_lock on;
4445
fastcgi_cache_lock_timeout 5s;
4546

47+
# Proxy settings
4648
proxy_redirect off;
4749
proxy_set_header Host $host;
4850
proxy_set_header X-Real-IP $remote_addr;
@@ -78,17 +80,6 @@ http {
7880
gzip_proxied any;
7981
gzip_disable "MSIE [1-6]\.";
8082

81-
# Proxy settings
82-
proxy_redirect off;
83-
proxy_set_header Host $host;
84-
proxy_set_header X-Real-IP $remote_addr;
85-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
86-
proxy_pass_header Set-Cookie;
87-
proxy_connect_timeout 90s;
88-
proxy_send_timeout 90s;
89-
proxy_read_timeout 90s;
90-
proxy_buffers 32 4k;
91-
9283
# Cloudflare https://www.cloudflare.com/ips
9384
set_real_ip_from 103.21.244.0/22;
9485
set_real_ip_from 103.22.200.0/22;

install/debian/9/nginx/nginx.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ http {
3333
server_names_hash_bucket_size 512;
3434
charset utf-8;
3535

36+
# FastCGI settings
3637
fastcgi_buffers 4 256k;
3738
fastcgi_buffer_size 256k;
3839
fastcgi_busy_buffers_size 256k;
@@ -43,6 +44,7 @@ http {
4344
fastcgi_cache_lock on;
4445
fastcgi_cache_lock_timeout 5s;
4546

47+
# Proxy settings
4648
proxy_redirect off;
4749
proxy_set_header Host $host;
4850
proxy_set_header X-Real-IP $remote_addr;
@@ -78,17 +80,6 @@ http {
7880
gzip_proxied any;
7981
gzip_disable "MSIE [1-6]\.";
8082

81-
# Proxy settings
82-
proxy_redirect off;
83-
proxy_set_header Host $host;
84-
proxy_set_header X-Real-IP $remote_addr;
85-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
86-
proxy_pass_header Set-Cookie;
87-
proxy_connect_timeout 90s;
88-
proxy_send_timeout 90s;
89-
proxy_read_timeout 90s;
90-
proxy_buffers 32 4k;
91-
9283
# Cloudflare https://www.cloudflare.com/ips
9384
set_real_ip_from 103.21.244.0/22;
9485
set_real_ip_from 103.22.200.0/22;

install/ubuntu/14.04/nginx/nginx.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ http {
3333
server_names_hash_bucket_size 512;
3434
charset utf-8;
3535

36+
# FastCGI settings
3637
fastcgi_buffers 4 256k;
3738
fastcgi_buffer_size 256k;
3839
fastcgi_busy_buffers_size 256k;
@@ -43,6 +44,7 @@ http {
4344
fastcgi_cache_lock on;
4445
fastcgi_cache_lock_timeout 5s;
4546

47+
# Proxy settings
4648
proxy_redirect off;
4749
proxy_set_header Host $host;
4850
proxy_set_header X-Real-IP $remote_addr;
@@ -78,17 +80,6 @@ http {
7880
gzip_proxied any;
7981
gzip_disable "MSIE [1-6]\.";
8082

81-
# Proxy settings
82-
proxy_redirect off;
83-
proxy_set_header Host $host;
84-
proxy_set_header X-Real-IP $remote_addr;
85-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
86-
proxy_pass_header Set-Cookie;
87-
proxy_connect_timeout 90s;
88-
proxy_send_timeout 90s;
89-
proxy_read_timeout 90s;
90-
proxy_buffers 32 4k;
91-
9283
# Cloudflare https://www.cloudflare.com/ips
9384
set_real_ip_from 103.21.244.0/22;
9485
set_real_ip_from 103.22.200.0/22;

install/ubuntu/16.04/nginx/nginx.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ http {
3333
server_names_hash_bucket_size 512;
3434
charset utf-8;
3535

36+
# FastCGI settings
3637
fastcgi_buffers 4 256k;
3738
fastcgi_buffer_size 256k;
3839
fastcgi_busy_buffers_size 256k;
@@ -43,6 +44,7 @@ http {
4344
fastcgi_cache_lock on;
4445
fastcgi_cache_lock_timeout 5s;
4546

47+
# Proxy settings
4648
proxy_redirect off;
4749
proxy_set_header Host $host;
4850
proxy_set_header X-Real-IP $remote_addr;
@@ -78,17 +80,6 @@ http {
7880
gzip_proxied any;
7981
gzip_disable "MSIE [1-6]\.";
8082

81-
# Proxy settings
82-
proxy_redirect off;
83-
proxy_set_header Host $host;
84-
proxy_set_header X-Real-IP $remote_addr;
85-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
86-
proxy_pass_header Set-Cookie;
87-
proxy_connect_timeout 90s;
88-
proxy_send_timeout 90s;
89-
proxy_read_timeout 90s;
90-
proxy_buffers 32 4k;
91-
9283
# Cloudflare https://www.cloudflare.com/ips
9384
set_real_ip_from 103.21.244.0/22;
9485
set_real_ip_from 103.22.200.0/22;

install/ubuntu/18.04/nginx/nginx.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ http {
3333
server_names_hash_bucket_size 512;
3434
charset utf-8;
3535

36+
# FastCGI settings
3637
fastcgi_buffers 4 256k;
3738
fastcgi_buffer_size 256k;
3839
fastcgi_busy_buffers_size 256k;
@@ -43,6 +44,7 @@ http {
4344
fastcgi_cache_lock on;
4445
fastcgi_cache_lock_timeout 5s;
4546

47+
# Proxy settings
4648
proxy_redirect off;
4749
proxy_set_header Host $host;
4850
proxy_set_header X-Real-IP $remote_addr;
@@ -78,17 +80,6 @@ http {
7880
gzip_proxied any;
7981
gzip_disable "MSIE [1-6]\.";
8082

81-
# Proxy settings
82-
proxy_redirect off;
83-
proxy_set_header Host $host;
84-
proxy_set_header X-Real-IP $remote_addr;
85-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
86-
proxy_pass_header Set-Cookie;
87-
proxy_connect_timeout 90s;
88-
proxy_send_timeout 90s;
89-
proxy_read_timeout 90s;
90-
proxy_buffers 32 4k;
91-
9283
# Cloudflare https://www.cloudflare.com/ips
9384
set_real_ip_from 103.21.244.0/22;
9485
set_real_ip_from 103.22.200.0/22;

0 commit comments

Comments
 (0)