Pixiv-Nginx/conf/Pixiv.conf
c15412 26adb4235d
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)
2024-08-27 18:34:08 +08:00

650 lines
15 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.119: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 120s;
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 4;
keepalive_timeout 120s;
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;
keepalive 3;
keepalive_timeout 120s;
keepalive_requests 10000;
}
upstream sketch-hls-server {
server 210.140.214.211:443;
server 210.140.214.212:443;
server 210.140.214.213:443;
keepalive 3;
keepalive_timeout 120s;
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;
keepalive 4;
keepalive_timeout 120s;
keepalive_requests 10000;
}
upstream i-pximg-net {
#server s.pximg.net:443;
#server 210.140.92.134:443;
#server 210.140.92.135:443;
#server 210.140.92.136:443;
#server 210.140.92.137:443;
#server 210.140.92.138:443;
#server 210.140.92.139:443;
#server 210.140.92.140:443;
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 120s;
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 120s;
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;
}
# default_server Start
upstream rpc-hh {
server 94.100.24.67:80;
server 94.100.24.68:80;
server 94.100.24.69:80;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
#if ($http_host != "rpc.hentaiathome.net") {
#
access_log off;
rewrite ^(.*) https://$host$1 permanent;
#}
#location / {
# proxy_pass http://rpc-hh/;
# proxy_http_version 1.1;
# proxy_next_upstream_timeout 10;
# proxy_connect_timeout 2;
# proxy_send_timeout 2;
# proxy_read_timeout 2;
# proxy_set_header Host $http_host;
# proxy_set_header User-Agent $http_user_agent;
# proxy_set_header Accept-Encoding '';
# proxy_buffering off;
#}
}
# 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.params;
}
}
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.params;
}
}
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.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name *.pximg.net;
include cert.conf;
location / {
proxy_pass https://i-pximg-net;
proxy_next_upstream_timeout 30;
proxy_connect_timeout 4;
proxy_set_header Referer "https://www.pixiv.net/";
proxy_set_header Sec-Fetch-Site "cross-site";
keepalive_timeout 120;
include proxy.params;
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.params;
allow all;
}
}
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.params;
}
# Proxying WebSockets
location /ws/ {
proxy_pass https://sketch-pixiv-net;
include proxy.params;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
#proxy_set_header Host $host;
}
}
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.params;
}
}
#server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# server_name factory.pixiv.net;
#
# include cert.conf;
#
# location / {
# proxy_pass https://210.140.131.180:443/;
# proxy_http_version 1.1;
# include proxy.params;
# }
#}
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.params;
}
}
#
#server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
#
# include cert.conf;
# server_name app-api.pixiv.net;
# location / {
# proxy_pass https://app-api-pixiv-net;
# proxy_http_version 1.1;
# include proxy.params;
# }
#}
# Pixiv End
# Wiki Start
upstream wikipedia-text-lb {
server 208.80.153.224:443;
#server 208.80.154.224:443;
server 91.198.174.192:443;
#server 103.102.166.224:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name *.wikipedia.org;
server_name *.m.wikipedia.org;
include cert.conf;
location / {
proxy_pass https://wikipedia-text-lb/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name wikimedia.org;
include cert.conf;
location / {
proxy_pass https://wikipedia-text-lb/;
include proxy.params;
}
}
upstream wikipedia-upload-lb {
server 208.80.153.240:443;
server 208.80.154.240:443;
server 91.198.174.208:443;
server 103.102.166.240: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.params;
}
}
# 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.params;
}
}
# 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.params;
}
}
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.params;
}
}
# Nyaa End
# github Start
upstream Github-com {
#server 140.82.112.3:443;
#server 140.82.112.4:443;
#server 140.82.113.3:443;
#server 140.82.113.4:443;
#server 140.82.114.3:443;
#server 140.82.114.4:443;
#server 140.82.116.3:443;
#server 140.82.116.4:443;
#server 140.82.121.3:443;
#server 140.82.121.4:443;
#server 52.69.186.44:443;#
#server 52.192.72.89:443;#
#server 52.78.231.108:443;#52.192.72.89
#server 52.69.186.44:443;
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.113: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: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 [2a04:4e42:75::133]:443;
server [2a04:4e42:76::133]:443;
server [2a04:4e42:8c::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/;
proxy_headers_hash_max_size 8192;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
include proxy.params;
}
}
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/;
proxy_connect_timeout 4;
proxy_read_timeout 1;
proxy_send_timeout 1;
proxy_next_upstream_timeout 32;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
include proxy.params;
}
}
# 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;
listen [::]:443 ssl http2;
server_name origin-a.akamaihd.net;
include cert.conf;
location / {
proxy_pass https://Origin-CDN/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name api1.origin.com;
include cert.conf;
location / {
proxy_pass https://api2.origin.com:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name pc.ea.com;
include cert.conf;
location / {
proxy_pass https://e8688.e12.akamaiedge.net:443/;
include proxy.params;
}
}
# EA End
# my-freenom-com Start
server {
listen 443 ssl so_keepalive=on;
listen [::]:443 ssl so_keepalive=on;
server_name my.freenom.com;
include cert.conf;
location / {
#resolver 223.5.5.5 valid=600;
set $my_freenom_com lb-my-freenom-com-vpc-2022-1373795610.eu-west-1.elb.amazonaws.com;
proxy_pass https://$my_freenom_com/;
include proxy.params;
#proxy_ssl_name $my_freenom_com;
#proxy_set_header Cookie $http_cookie;
proxy_connect_timeout 10;
proxy_send_timeout 120;
proxy_read_timeout 120;
}
}
# my-freenom-com End
# wix Start
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com;
server_name images-wixmp-530a50041672c69d335ba4cf.wixmp.com;
include cert.conf;
location / {
proxy_pass https://34.96.91.138:443/;
include proxy.params;
proxy_set_header Cookie $http_cookie;
proxy_connect_timeout 4;
proxy_send_timeout 4;
proxy_read_timeout 4;
}
}
# wix End
# pixeldrain Start
upstream pixeldrain-com {
server 50.7.24.66:443;
server [2001:49f0:d0f6:8::2]:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name pixeldrain.com;
include cert.conf;
location / {
proxy_pass https://pixeldrain-com/;
include proxy.params;
proxy_set_header Cookie $http_cookie;
proxy_connect_timeout 4;
proxy_send_timeout 4;
proxy_read_timeout 4;
}
}
# pixeldrain End
# pixeldrain Start
upstream apkpure-com {
server [2606:4700:10::ac43:87f]:443;
server [2606:4700:10::6816:577]:443;
server [2606:4700:10::6816:477]:443;
server 104.22.4.119:443;
server 172.67.8.127:443;
server 104.22.5.119:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name apkpure.com *.apkpure.com;
include cert.conf;
location / {
proxy_pass https://apkpure-com/;
include proxy.params;
proxy_set_header Cookie $http_cookie;
proxy_ssl_name "${http_host}";
proxy_connect_timeout 4;
proxy_send_timeout 4;
proxy_read_timeout 4;
}
}
# pixeldrain End