mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-24 06:38:11 +08:00
0ea7d5fe0e
* 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参数,提升访问可靠性 * 改进部分上游服务器写法,避免了可能导致"not signaled for 5s"停止的问题 * 改进部分上游服务器写法 * Update the domains * 增加FaceBook反向代理 配置文件(2024年09月14日14时00分 1、修复部分上游服务器 2、新增FaceBook反向代理(仅IPv6,需要本地dns进行批量dns重写 * 删除非windows使用的文件夹,现在conf文件夹多端通用,nginx版本大于18即可 删除非windows使用的文件夹,现在conf文件夹多端通用,nginx版本大于18即可 * 更新子证书内容,以支持FaceBook 更新子证书内容,以支持FaceBook * Delete facebook * Delete conf/Reddit.conf * Delete conf/Twitch.conf * Delete conf/Twitter.conf * Delete conf/instagram.conf * Delete conf/Twitter.params * Delete conf/Twitch.params * Delete conf/Discord.conf
492 lines
11 KiB
Plaintext
492 lines
11 KiB
Plaintext
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.219:443;
|
|
server 210.140.131.220:443;
|
|
server 210.140.131.222:443;
|
|
server 210.140.131.223:443;
|
|
server 210.140.131.224:443;
|
|
server 210.140.131.225:443;
|
|
server 210.140.131.226:443;
|
|
keepalive 16;
|
|
keepalive_timeout 120;
|
|
keepalive_requests 10000;
|
|
}
|
|
|
|
upstream account-pixiv-net {
|
|
server 210.140.131.219:443;
|
|
server 210.140.131.223:443;
|
|
server 210.140.131.226:443;
|
|
keepalive 16;
|
|
keepalive_timeout 120;
|
|
keepalive_requests 10000;
|
|
}
|
|
|
|
upstream ssl-pixiv-net {
|
|
server 210.140.92.192:443;
|
|
server 210.140.92.193:443;
|
|
server 210.140.92.183:443;
|
|
}
|
|
|
|
upstream sketch-pixiv-net {
|
|
server 210.140.174.37:443;
|
|
server 210.140.170.179:443;
|
|
server 210.140.175.130:443;
|
|
}
|
|
|
|
upstream sketch-hls-server {
|
|
server 210.140.214.211:443;
|
|
server 210.140.214.212:443;
|
|
server 210.140.214.213:443;
|
|
keepalive 16;
|
|
keepalive_timeout 120;
|
|
keepalive_requests 10000;
|
|
}
|
|
|
|
upstream imgaz-pixiv-net {
|
|
server 210.140.131.145:443;
|
|
server 210.140.131.144:443;
|
|
server 210.140.131.147:443;
|
|
server 210.140.131.153:443;
|
|
}
|
|
|
|
upstream i-pximg-net {
|
|
server 210.140.92.141:443;
|
|
server 210.140.92.142:443;
|
|
server 210.140.92.143:443;
|
|
server 210.140.92.144:443;
|
|
server 210.140.92.145:443;
|
|
server 210.140.92.146:443;
|
|
server 210.140.92.148:443;
|
|
server 210.140.92.149:443;
|
|
server 210.140.139.131:443;
|
|
server 210.140.139.132:443;
|
|
server 210.140.139.133:443;
|
|
server 210.140.139.134:443;
|
|
server 210.140.139.135:443;
|
|
server 210.140.139.136:443;
|
|
|
|
keepalive 16;
|
|
keepalive_timeout 120;
|
|
keepalive_requests 10000;
|
|
}
|
|
|
|
upstream fanbox-cc {
|
|
server 210.140.92.179:443;
|
|
server 210.140.92.180:443;
|
|
server 210.140.92.181:443;
|
|
server 210.140.92.182:443;
|
|
server 210.140.92.183:443;
|
|
server 210.140.92.184:443;
|
|
server 210.140.92.185:443;
|
|
server 210.140.92.186:443;
|
|
server 210.140.92.187:443;
|
|
keepalive 16;
|
|
keepalive_timeout 120;
|
|
keepalive_requests 10000;
|
|
}
|
|
|
|
upstream app-api-pixiv-net {
|
|
server 210.140.131.218:443;
|
|
server 210.140.131.223:443;
|
|
server 210.140.131.226:443;
|
|
}
|
|
|
|
upstream AkamaiCDN {
|
|
server 184.27.185.73:443;
|
|
server 184.27.185.76:443;
|
|
server 184.26.43.79:443;
|
|
server 184.26.43.80:443;
|
|
server 184.26.91.162:443;
|
|
server 184.26.91.47:443;
|
|
server 23.48.201.10:443;
|
|
server 23.48.201.16:443;
|
|
server 23.48.201.33:443;
|
|
server 23.48.201.34:443;
|
|
server 23.49.104.47:443;
|
|
server 23.49.104.48:443;
|
|
server 23.49.104.197:443;
|
|
server 23.49.104.200:443;
|
|
server 23.49.104.201:443;
|
|
server 23.49.104.202:443;
|
|
server 23.202.34.90:443;
|
|
server 23.202.34.91:443;
|
|
server 23.202.34.120:443;
|
|
server 23.202.34.250:443;
|
|
server 23.202.35.57:443;
|
|
server 23.202.35.90:443;
|
|
server 23.202.35.120:443;
|
|
server 23.202.35.250:443;
|
|
keepalive 16;
|
|
keepalive_time 1h;
|
|
keepalive_timeout 120;
|
|
keepalive_requests 10000;
|
|
}
|
|
|
|
# default_server Start
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
access_log off;
|
|
rewrite ^(.*) https://$host$1 permanent;
|
|
}
|
|
# default_server End
|
|
|
|
# Pixiv Start
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name www.pixiv.net;
|
|
|
|
include cert.conf;
|
|
|
|
client_max_body_size 50M;
|
|
|
|
location / {
|
|
proxy_pass https://www-pixiv-net;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name accounts.pixiv.net;
|
|
server_name oauth.secure.pixiv.net;
|
|
server_name source.pixiv.net;
|
|
server_name app-api.pixiv.net;
|
|
server_name payment.pixiv.net;
|
|
server_name sensei.pixiv.net;
|
|
server_name dic.pixiv.net;
|
|
server_name en-dic.pixiv.net;
|
|
|
|
include cert.conf;
|
|
|
|
client_max_body_size 50M;
|
|
|
|
location / {
|
|
proxy_pass https://account-pixiv-net/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name pixiv.net;
|
|
server_name ssl.pixiv.net;
|
|
server_name touch.pixiv.net;
|
|
server_name factory.pixiv.net;
|
|
server_name fanbox.pixiv.net;
|
|
|
|
include cert.conf;
|
|
|
|
client_max_body_size 50M;
|
|
|
|
location / {
|
|
proxy_pass https://ssl-pixiv-net;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name *.pximg.net;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://i-pximg-net;
|
|
include Proxy.conf;
|
|
proxy_next_upstream_timeout 60;
|
|
proxy_set_header Referer "https://www.pixiv.net/";
|
|
proxy_set_header Sec-Fetch-Site "cross-site";
|
|
allow all;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name downloads.fanbox.cc;
|
|
server_name *.fanbox.cc;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://fanbox-cc/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name sketch.pixiv.net;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://sketch-pixiv-net;
|
|
include Proxy.conf;
|
|
}
|
|
|
|
# Proxying WebSockets
|
|
location /ws/ {
|
|
proxy_pass https://sketch-pixiv-net;
|
|
include proxy.params;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name *.pixivsketch.net;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://sketch-hls-server;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name imgaz.pixiv.net;
|
|
server_name comic.pixiv.net;
|
|
server_name novel.pixiv.net;
|
|
server_name i1.pixiv.net;
|
|
server_name i2.pixiv.net;
|
|
server_name i3.pixiv.net;
|
|
server_name i4.pixiv.net;
|
|
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://imgaz-pixiv-net;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
# Pixiv End
|
|
|
|
# Wiki Start
|
|
upstream wikipedia-text-lb {
|
|
server 208.80.153.224:443;
|
|
server 185.15.58.224:443;
|
|
server [2620:0:863:ed1a::1]:443;
|
|
server [2620:0:861:ed1a::1]:443;
|
|
server [2620:0:860:ed1a::1]:443;
|
|
server [2001:df2:e500:ed1a::1]:443;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name *.wikipedia.org;
|
|
server_name *.m.wikipedia.org;
|
|
server_name wikimedia.org;
|
|
server_name *.wikimedia.org;
|
|
server_name *.m.wikimedia.org;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://wikipedia-text-lb/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
upstream wikipedia-upload-lb {
|
|
server 208.80.153.240:443;
|
|
server 208.80.154.240:443;
|
|
server [2620:0:863:ed1a::2:b]:443;
|
|
server [2620:0:861:ed1a::2:b]:443;
|
|
server [2620:0:860:ed1a::2:b]:443;
|
|
server [2001:df2:e500:ed1a::2:b]:443;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name upload.wikimedia.org;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://wikipedia-upload-lb/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
# Wiki End
|
|
|
|
# archiveofourown Start
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name *.archiveofourown.org;
|
|
server_name archiveofourown.org;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://104.153.64.122:443/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
# archiveofourown End
|
|
|
|
# Nyaa Start
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name sukebei.nyaa.si;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://198.251.89.38:443/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name nyaa.si;
|
|
server_name www.nyaa.si;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://185.178.208.182:443/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
# Nyaa End
|
|
|
|
# github Start
|
|
upstream Github-com {
|
|
server 20.205.243.166:443;
|
|
server 20.27.177.113:443;
|
|
server 20.200.245.247:443;
|
|
}
|
|
|
|
upstream githubusercontent-com {
|
|
server 185.199.109.133:443;
|
|
server 185.199.108.133:443;
|
|
server 185.199.110.133:443;
|
|
server 185.199.111.133:443;
|
|
server 146.75.112.133:443;
|
|
server 146.75.20.133:443;
|
|
server 151.101.64.133:443;
|
|
server 151.101.76.133:443;
|
|
#server 151.101.108.133:443;
|
|
server 151.101.128.133:443;
|
|
server 151.101.192.133:443;
|
|
#server 151.101.228.133:443;
|
|
server 199.232.208.133:443;
|
|
server 199.232.212.133:443;
|
|
server 199.232.232.133:443;
|
|
server [2a04:4e42:75::133]:443;
|
|
server [2a04:4e42:76::133]:443;
|
|
server [2a04:4e42:82::133]:443;
|
|
server [2a04:4e42:8c::133]:443;
|
|
server [2a04:4e42:4d::133]:443;
|
|
server [2a04:4e42:4c::133]:443;
|
|
|
|
server [2a04:4e42:12::133]:443;
|
|
server [2a04:4e42:15::133]:443;
|
|
server [2a04:4e42:1a::133]:443;
|
|
server [2a04:4e42:36::133]:443;
|
|
server [2a04:4e42:48::133]:443;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name github.com;
|
|
server_name *.github.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://Github-com/;
|
|
include Proxy.conf;
|
|
proxy_headers_hash_max_size 8192;
|
|
proxy_buffer_size 128k;
|
|
proxy_buffers 4 256k;
|
|
proxy_busy_buffers_size 256k;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name githubusercontent.com;
|
|
server_name *.githubusercontent.com;
|
|
server_name githubassets.com;
|
|
server_name *.githubassets.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://githubusercontent-com/;
|
|
include Proxy.conf;
|
|
proxy_set_header Range $http_range;
|
|
proxy_set_header If-Range $http_if_range;
|
|
}
|
|
}
|
|
# github End
|
|
|
|
# EA Start
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name origin-a.akamaihd.net;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://AkamaiCDN/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name api1.origin.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
set $rewrite_host "api2.origin.com";
|
|
proxy_pass https://$rewrite_host/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name pc.ea.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
set $rewrite_host "e8688.e12.akamaiedge.net";
|
|
proxy_pass https://$rewrite_host/;
|
|
include Proxy.conf;
|
|
}
|
|
}
|
|
# EA End |