mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-24 14:48:11 +08:00
增加FaceBook反向代理
配置文件(2024年09月14日14时00分 1、修复部分上游服务器 2、新增FaceBook反向代理(仅IPv6,需要本地dns进行批量dns重写
This commit is contained in:
parent
1cab1c218c
commit
755d48df01
137
conf/FaceBook.conf
Normal file
137
conf/FaceBook.conf
Normal file
@ -0,0 +1,137 @@
|
||||
upstream FBCDN {
|
||||
server [2a03:2880:f05e:10c:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05e:10:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f01d:a:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f01d:10c:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f04e:f:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f0a2:16:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f00c:10d:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f00c:300:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05c:10:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05c:110:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05c:20d:face:b00c:0:3]:443 max_fails=10 fail_timeout=60s;
|
||||
keepalive 16;
|
||||
keepalive_time 1h;
|
||||
keepalive_timeout 300s;
|
||||
keepalive_requests 10000;
|
||||
}
|
||||
|
||||
upstream FB-gateway {
|
||||
server [2a03:2880:f05c:1:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05c:100:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05c:208:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05e:0:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05e:115:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f0a2:13:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:11:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:108:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:20c:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:314:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f01d:d:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f01d:105:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f04e:1:face:b00c:0:6206]:443;
|
||||
keepalive 16;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name gateway.facebook.com;
|
||||
|
||||
access_log logs/FaceBook-access.log main buffer=4k;
|
||||
#access_log off;
|
||||
error_log logs/FaceBook-error.log;
|
||||
|
||||
include cert.conf;
|
||||
location / {
|
||||
proxy_pass https://FB-gateway/;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
include Proxy.params;
|
||||
}
|
||||
}
|
||||
|
||||
upstream FB {
|
||||
server [2a03:2880:f186:84:face:b00c:0:25de]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f15e:83:face:b00c:0:25de]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f15e:182:face:b00c:0:25de]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f115:83:face:b00c:0:25de]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f115:188:face:b00c:0:25de]:443 max_fails=10 fail_timeout=60s;
|
||||
keepalive 16;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name www.facebook.com;
|
||||
server_name facebook.com;
|
||||
|
||||
access_log logs/FaceBook-access.log main buffer=4k;
|
||||
#access_log off;
|
||||
error_log logs/FaceBook-error.log;
|
||||
|
||||
include cert.conf;
|
||||
location / {
|
||||
proxy_pass https://FB/;
|
||||
proxy_next_upstream error timeout http_429 http_500 http_502 http_503 http_504 non_idempotent;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 16 32k;
|
||||
proxy_busy_buffers_size 128k;
|
||||
include Proxy.conf;
|
||||
}
|
||||
}
|
||||
|
||||
upstream FB-S {
|
||||
server [2a03:2880:f01d:6:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f01d:106:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f0a2:1:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05c:12:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05c:112:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05c:204:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05e:12:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f05e:100:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f00c:100:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f00c:310:face:b00c:0:2]:443 max_fails=10 fail_timeout=60s;
|
||||
keepalive 16;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name *.facebook.com;
|
||||
|
||||
access_log logs/FaceBook-access.log main buffer=4k;
|
||||
#access_log off;
|
||||
error_log logs/FaceBook-error.log;
|
||||
|
||||
include cert.conf;
|
||||
location / {
|
||||
proxy_pass https://FB-S/;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 16 32k;
|
||||
proxy_busy_buffers_size 128k;
|
||||
include Proxy.conf;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name facebook.net;
|
||||
server_name *.facebook.net;
|
||||
server_name fbsbx.com;
|
||||
server_name *.fbsbx.com;
|
||||
server_name fbcdn.net;
|
||||
server_name *.fbcdn.net;
|
||||
|
||||
access_log logs/FaceBook-access.log main buffer=4k;
|
||||
#access_log off;
|
||||
error_log logs/FaceBook-error.log;
|
||||
|
||||
include cert.conf;
|
||||
location / {
|
||||
proxy_pass https://FBCDN/;
|
||||
proxy_next_upstream error timeout http_429 http_500 http_502 http_503 http_504 non_idempotent;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 16 32k;
|
||||
proxy_busy_buffers_size 128k;
|
||||
include Proxy.conf;
|
||||
}
|
||||
}
|
@ -2,7 +2,7 @@ upstream www-pixiv-net {
|
||||
server 210.140.131.181:443;
|
||||
server 210.140.131.183:443;
|
||||
server 210.140.131.185:443;
|
||||
server 210.140.131.119:443;
|
||||
server 210.140.131.219:443;
|
||||
server 210.140.131.220:443;
|
||||
server 210.140.131.222:443;
|
||||
server 210.140.131.223:443;
|
||||
@ -51,7 +51,6 @@ upstream imgaz-pixiv-net {
|
||||
server 210.140.131.153:443;
|
||||
}
|
||||
|
||||
|
||||
upstream i-pximg-net {
|
||||
server 210.140.92.141:443;
|
||||
server 210.140.92.142:443;
|
||||
@ -449,13 +448,6 @@ server {
|
||||
# github End
|
||||
|
||||
# EA Start
|
||||
#upstream Origin-CDN {
|
||||
# server cctv4-lh.akamaihd.net:443;
|
||||
# server moviesok-i.akamaihd.net:443;
|
||||
# server vluki-a.akamaihd.net:443;
|
||||
# server hgtv-i.akamaihd.net:443;
|
||||
# server toots-a.akamaihd.net:443;
|
||||
#}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
@ -497,4 +489,4 @@ server {
|
||||
include Proxy.conf;
|
||||
}
|
||||
}
|
||||
# EA End
|
||||
# EA End
|
@ -1,26 +1,40 @@
|
||||
#upstream instagram-com {
|
||||
# server [2a03:2880:f25e:1e4:face:b00c:0:4420]:443;
|
||||
#}
|
||||
upstream list-cdn-ins {
|
||||
#故障,弃用 server [2a03:2880:f25a:cc:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#香港hkt1
|
||||
#故障,弃用 server [2a03:2880:f25a:1c2:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#香港hkt2
|
||||
server [2a03:2880:f25e:1e4:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;#不明香港服务器但可用
|
||||
server [2a03:2880:f215:c3:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#香港hkg1-1
|
||||
server [2a03:2880:f215:1d2:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#香港hkg1-2
|
||||
server [2a03:2880:f25e:ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#香港hkg4-1
|
||||
server [2a03:2880:f25e:1ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#香港hkg4-2
|
||||
#故障,弃用 server [2a03:2880:f20f:c4:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#日本nrt1
|
||||
#故障,弃用 server [2a03:2880:f20f:1d0:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#日本nrt2
|
||||
server [2a03:2880:f24e:cb:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#日本itm1
|
||||
server [2a03:2880:f20c:c4:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡sin6-1
|
||||
server [2a03:2880:f20c:2c4:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡sin6-2
|
||||
server [2a03:2880:f20c:1ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡sin6-3
|
||||
server [2a03:2880:f20c:3c2:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡sin6-4
|
||||
server [2a03:2880:f25c:cc:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡XSP1-1
|
||||
server [2a03:2880:f25c:1cc:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡XSP1-2
|
||||
server [2a03:2880:f25c:2c7:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡XSP1-3
|
||||
server [2a03:2880:f286:c9:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#新加坡XSP2-1
|
||||
#故障,弃用 server [2a03:2880:f24a:ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;#韩国GMP
|
||||
server [2a03:2880:f20c:c4:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:e5:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:1ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:1e5:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:1ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:2c4:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:2e5:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:2ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:3c2:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:3e6:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f20c:3ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f215:c3:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f215:e3:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f215:e8:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f215:1d2:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f215:1e0:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f215:1e7:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f24e:cb:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f24e:e0:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f24e:ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:cc:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:e0:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:1cc:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:1e0:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:1ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:2c7:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:2e3:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25c:2ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25e:ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25e:e0:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25e:ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25e:1ca:face:b00c:0:43fe]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25e:1e4:face:b00c:0:4420]:443 max_fails=10 fail_timeout=60s;
|
||||
server [2a03:2880:f25e:1ea:face:b00c:0:6200]:443 max_fails=10 fail_timeout=60s;
|
||||
keepalive 16;
|
||||
keepalive_time 1h;
|
||||
keepalive_timeout 300s;
|
||||
@ -45,6 +59,22 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
upstream ins-gateway {
|
||||
server [2a03:2880:f05c:1:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05c:100:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05c:208:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05e:0:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f05e:115:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f0a2:13:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:11:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:108:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:20c:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f00c:314:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f01d:d:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f01d:105:face:b00c:0:6206]:443;
|
||||
server [2a03:2880:f04e:1:face:b00c:0:6206]:443;
|
||||
keepalive 16;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
@ -56,7 +86,7 @@ server {
|
||||
|
||||
include cert.conf;
|
||||
location / {
|
||||
proxy_pass https://[2a03:2880:f05e:115:face:b00c:0:6206]:443/;
|
||||
proxy_pass https://ins-gateway/;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
include Proxy.params;
|
||||
@ -81,12 +111,10 @@ server {
|
||||
include cert.conf;
|
||||
location / {
|
||||
proxy_pass https://list-cdn-ins/;
|
||||
|
||||
proxy_next_upstream error timeout http_429 http_500 http_502 http_503 http_504 non_idempotent;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 16 32k;
|
||||
proxy_busy_buffers_size 128k;
|
||||
include Proxy.conf;
|
||||
|
||||
}
|
||||
}
|
@ -44,6 +44,7 @@ http {
|
||||
#include Twitter.conf;
|
||||
#include Twitch.conf;
|
||||
#include Instagram.conf;
|
||||
#include FaceBook.conf;
|
||||
#include PayPal.conf;
|
||||
#include nhentai.conf;
|
||||
#include GoogleVideo.conf;
|
||||
|
Loading…
Reference in New Issue
Block a user