Pixiv-Nginx/conf/instagram.conf
c15412 81c7a11ef8
更新 (#69)
* Add files via upload

Update the upstream of Steam, Pixiv, E-hentai
Add Server :
Discord (IPv4)
Instagram (IPv6 Only, Local DNS rewrite required to rewrite all subdomains)
WallHaven (IPv4, image CDN Only, excluding pages)
Reddit (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitter (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitch (IPv4, Local DNS And DoH were required to rewrite all subdomains)
GoogleCDN (File Server IPv6 Only, website pages and IPv4 servers were not included, Local DNS rewrite required to rewrite all subdomains)

* Update the self-signed certificate config

self-signed certificate

* Update README.md

* 更换NGINX版本

* 配置文件(2024年08月31日18时11分

配置文件(2024年08月31日18时11分
1、更新部分上游服务器
2、改进KeepAlive参数,提升访问可靠性
2024-09-01 13:09:39 +08:00

95 lines
3.9 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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
keepalive 16;
keepalive_time 1h;
keepalive_timeout 300s;
keepalive_requests 10000;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name edge-chat.instagram.com;
access_log logs/Instagram-access.log main buffer=4k;
error_log logs/Instagram-error.log;
include cert.conf;
location / {
proxy_pass https://list-cdn-ins/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
include Proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name gateway.instagram.com;
access_log logs/Instagram-access.log main buffer=4k;
error_log logs/Instagram-error.log;
include cert.conf;
location / {
proxy_pass https://[2a03:2880:f05e:115:face:b00c:0:6206]:443/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
include Proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name *.cdninstagram.com;
server_name ig.me;
server_name *.ig.me;
server_name instagr.am;
server_name *.instagr.am;
server_name Instagram.com;
server_name *.Instagram.com;
access_log logs/Instagram-access.log main buffer=4k;
error_log logs/Instagram-error.log;
include cert.conf;
location / {
proxy_pass https://list-cdn-ins/;
include proxy.params;
proxy_set_header Connection "";
proxy_buffer_size 128k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 128k;
proxy_next_upstream error timeout http_429 http_500 http_502 http_503 http_504 non_idempotent;
proxy_connect_timeout 2;
proxy_next_upstream_timeout 60;
proxy_send_timeout 5;
proxy_read_timeout 5;
keepalive_timeout 120;
}
}