Pixiv-Nginx/conf/Twitch.conf
c15412 58fbb62fac
改进部分上游服务器写法,避免了可能导致"not signaled for 5s"停止的问题 (#70)
* 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"停止的问题
2024-09-04 19:52:56 +08:00

463 lines
10 KiB
Plaintext

# Twitch Start
upstream twitch-tv {
server 151.101.2.167:443;
server 151.101.66.167:443;
server 151.101.130.167:443;
server 151.101.194.167:443;
server 151.101.230.167:443;
# server twitch.map.fastly.net:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name twitch.tv;
server_name www.twitch.tv;
server_name m.twitch.tv;
server_name app.twitch.tv;
server_name clips.twitch.tv;
server_name gql.twitch.tv;
server_name dashboard.twitch.tv;
server_name player.twitch.tv;
server_name api.twitch.tv;
include cert.conf;
location / {
set $twitch_tv twitch.map.fastly.net;
proxy_pass https://$twitch_tv/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name irc-ws.chat.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "5a895ed07aed1b254ee21cd78958ae0b.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name irc-ws-r.chat.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "065f67277ae87878fffaa60519b3ee5c.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vod-storyboards.twitch.tv;
include cert.conf;
location / {
set $vod_storyboards dlifex0fg7ru9.cloudfront.net;
proxy_pass https://$vod_storyboards:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vod-metro.twitch.tv;
include cert.conf;
location / {
set $vod_metro d8t045al7vai0.cloudfront.net;
proxy_pass https://$vod_metro:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name music.twitch.tv;
include cert.conf;
location / {
set $music_twitch_tv d12b3e89c9703p.cloudfront.net;
proxy_pass https://$music_twitch_tv:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name player.m7g.twitch.tv;
include cert.conf;
location / {
set $player_m7g_twitch dnjmu7cm5xw9w.cloudfront.net;
proxy_pass https://$player_m7g_twitch:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name badges.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "dbc180c27b3635f9e5b006f3a037b87e.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
upstream d1x43om3304ey9-cloudfront-net {
server 13.225.103.12:443;
server 13.225.103.89:443;
server 13.225.103.105:443;
server 13.225.103.124:443;
server [2600:9000:2200:8a00:2:b70:2c40:93a1]:443;
server [2600:9000:2200:5000:2:b70:2c40:93a1]:443;
server [2600:9000:2200:b400:2:b70:2c40:93a1]:443;
server [2600:9000:2200:7600:2:b70:2c40:93a1]:443;
server [2600:9000:2200:2800:2:b70:2c40:93a1]:443;
server [2600:9000:2200:2400:2:b70:2c40:93a1]:443;
server [2600:9000:2200:2200:2:b70:2c40:93a1]:443;
server [2600:9000:2200:e600:2:b70:2c40:93a1]:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name blog.twitch.tv;
include cert.conf;
location / {
set $blog_twitch d1x43om3304ey9.cloudfront.net;
proxy_pass https://$blog_twitch:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name panels.twitch.tv;
include cert.conf;
location / {
resolver 9.9.9.12 valid=60;
set $panels_twitch_tv d1ut6fykkt3imt.cloudfront.net;
proxy_pass https://$panels_twitch_tv:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name dev.twitch.tv;
include cert.conf;
location / {
set $dev_twitch_tv d205b01qzi0xib.cloudfront.net;
proxy_pass https://$dev_twitch_tv:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name spade.twitch.tv;
include cert.conf;
location / {
set $spade_twitch_tv science-edge-external-prod-73889260.us-west-2.elb.amazonaws.com;
proxy_pass https://$spade_twitch_tv/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vod-secure.twitch.tv;
include cert.conf;
location / {
set $vod_secure_twitch_tv ds0h3roq6wcgc.cloudfront.net;
proxy_pass https://$vod_secure_twitch_tv/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name trowel.twitch.tv;
include cert.conf;
location / {
set $trowel_twitch_tv science-edge-external-prod-73889260.us-west-2.elb.amazonaws.com;
proxy_pass https://$trowel_twitch_tv/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name extension-files.twitch.tv;
include cert.conf;
location / {
set $extension_files_twitch d36mepituis1gg.cloudfront.net;
proxy_pass https://$extension_files_twitch:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name help.twitch.tv;
include cert.conf;
location / {
set $help_twitch_tv e26428.dscx.akamaiedge.net;
proxy_pass https://$help_twitch_tv:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name brand.twitch.tv;
include cert.conf;
location / {
set $brand_twitch d2g064yykcu7rs.cloudfront.net;
proxy_pass https://$brand_twitch:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name passport.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "c3ad68a16f66bff24e2d82595bd240a1.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name id.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "2973c6ca0e111662ed293b57dbae9fbf.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name link.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "985a89155dd090eacda1b82388e334ed.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
upstream id--cdn-twitch-tv {
server 13.224.167.13:443;
server 13.224.167.21:443;
server 13.224.167.82:443;
server 13.224.167.126:443;
server 108.138.246.32:443;
server 108.138.246.23:443;
server 108.138.246.47:443;
server 108.138.246.101:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name id-cdn.twitch.tv;
include cert.conf;
location / {
proxy_pass https://id--cdn-twitch-tv/;
include proxy.params;
}
}
upstream pubsub--edge-twitch-tv {
server 54.186.8.237:443;
server 100.20.215.79:443;
server 35.82.206.220:443;
server 54.69.59.28:443;
server 54.188.166.247:443;
server 34.213.206.213:443;
server 54.184.104.163:443;
server 34.213.26.113:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name pubsub-edge.twitch.tv;
include cert.conf;
location / {
proxy_pass https://pubsub--edge-twitch-tv/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name assets.help.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "6d859be7aa0440f65c8a940ef5218337.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name discuss.dev.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "522c432cc10e237a02fa1d6481d7d247.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ingest.twitch.tv;
include cert.conf;
location / {
set $rewrite_host "b3d696173d52b66e1caab6145cb5058b.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name usher.ttvnw.net;
include cert.conf;
location / {
set $rewrite_host "usher.steam302.xyz";
proxy_pass https://$rewrite_host/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name cvp.twitch.tv;
include cert.conf;
location / {
set $cvp_twitch e9221.i.akamaiedge.net;
proxy_pass https://$cvp_twitch:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name clips-media-assets2.twitch.tv;
include cert.conf;
location / {
set $clips_media_twitch d2xmjdvx03ij56.cloudfront.net;
proxy_pass https://$clips_media_twitch:443/;
include proxy.params;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name safety.twitch.tv;
include cert.conf;
location / {
set $safety_twitch e28790.dsca.akamaiedge.net;
proxy_pass https://$safety_twitch:443/;
include proxy.params;
}
}
# Twitch End