Pixiv-Nginx/conf/Discord.conf

214 lines
6.0 KiB
Plaintext
Raw Normal View History

# Discord Start
upstream DiscordApp-com {
server 162.159.129.233:443;
server 162.159.130.233:443;
server 162.159.133.233:443;
server 162.159.134.233:443;
server 162.159.135.233:443;
2024-09-05 10:44:21 +08:00
server [2606:4700::162.159.129.233]:443;
server [2606:4700::162.159.130.233]:443;
server [2606:4700::162.159.133.233]:443;
server [2606:4700::162.159.134.233]:443;
server [2606:4700::162.159.135.233]:443;
keepalive 16;
keepalive_time 1h;
keepalive_timeout 120;
keepalive_requests 10000;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name discordapp.com;
server_name url9177.discordapp.com;
server_name canary-api.discordapp.com;
server_name cdn-ptb.discordapp.com;
server_name ptb.discordapp.com;
server_name status.discordapp.com;
server_name cdn-canary.discordapp.com;
server_name cdn.discordapp.com;
server_name streamkit.discordapp.com;
server_name i18n.discordapp.com;
server_name url9624.discordapp.com;
server_name url7195.discordapp.com;
server_name merch.discordapp.com;
server_name printer.discordapp.com;
server_name canary.discordapp.com;
server_name apps.discordapp.com;
server_name pax.discordapp.com;
include cert.conf;
2024-09-05 10:44:21 +08:00
#access_log logs/Discord-access.log main buffer=4k;
access_log off;
error_log logs/Discord-error.log;
location / {
proxy_pass https://DiscordApp-com/;
2024-09-05 10:44:21 +08:00
include Proxy.conf;
}
}
upstream Discord-com {
server 162.159.135.232:443;
server 162.159.136.232:443;
server 162.159.137.232:443;
server 162.159.138.232:443;
server 162.159.128.233:443;
2024-09-05 10:44:21 +08:00
server [2606:4700::162.159.128.232]:443;
server [2606:4700::162.159.135.232]:443;
server [2606:4700::162.159.136.232]:443;
server [2606:4700::162.159.137.232]:443;
server [2606:4700::162.159.138.232]:443;
keepalive 16;
keepalive_time 1h;
keepalive_timeout 120;
keepalive_requests 10000;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name discord.com;
server_name status.discord.com;
server_name streamkit.discord.com;
server_name feedback.discord.com;
server_name click.discord.com;
server_name pax.discord.com;
server_name printer.discord.com;
server_name ptb.discord.com;
server_name canary.discord.com;
server_name bugs.discord.com;
server_name i18n.discord.com;
include cert.conf;
2024-09-05 10:44:21 +08:00
#access_log logs/Discord-access.log main buffer=4k;
access_log off;
error_log logs/Discord-error.log;
location / {
proxy_pass https://Discord-com/;
tcp_nodelay on;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection "Upgrade";
proxy_headers_hash_max_size 8192;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_set_header Cookie $http_cookie;
2024-09-05 10:44:21 +08:00
include Proxy.conf;
}
}
upstream Discord-gg {
server 162.159.130.234:443;
server 162.159.133.234:443;
server 162.159.134.234:443;
server 162.159.135.234:443;
server 162.159.126.234:443;
2024-09-05 10:44:21 +08:00
server [2606:4700::162.159.130.234]:443;
server [2606:4700::162.159.133.234]:443;
server [2606:4700::162.159.134.234]:443;
server [2606:4700::162.159.135.234]:443;
server [2606:4700::162.159.126.234]:443;
keepalive 8;
keepalive_time 1h;
keepalive_timeout 60s;
2024-09-05 10:44:21 +08:00
keepalive_requests 1000;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name discord.gg;
server_name gateway.discord.gg;
server_name gateway-us-east1-b.discord.gg;
include cert.conf;
2024-09-05 10:44:21 +08:00
#access_log logs/Discord-access.log main buffer=4k;
access_log off;
error_log logs/Discord-error.log;
location / {
proxy_pass https://Discord-gg/;
tcp_nodelay on;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
include proxy.params;
}
}
upstream support-Discord-com {
server 104.16.51.111:443;
server 104.16.53.111:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name support.discord.com;
server_name safety.discord.com;
server_name support-dev.discord.com;
include cert.conf;
2024-09-05 10:44:21 +08:00
#access_log logs/Discord-access.log main buffer=4k;
access_log off;
error_log logs/Discord-error.log;
location / {
proxy_pass https://support-Discord-com/;
2024-09-05 10:44:21 +08:00
include Proxy.conf;
}
}
upstream dl-discordapp-net {
server 162.159.129.232:443;
server 162.159.130.232:443;
server 162.159.133.232:443;
server 162.159.134.232:443;
server 162.159.128.233:443;
2024-09-05 10:44:21 +08:00
server [2606:4700::162.159.128.233]:443;
server [2606:4700::162.159.129.232]:443;
server [2606:4700::162.159.130.232]:443;
server [2606:4700::162.159.133.232]:443;
server [2606:4700::162.159.134.232]:443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name dl.discordapp.net;
include cert.conf;
2024-09-05 10:44:21 +08:00
#access_log logs/Discord-access.log main buffer=4k;
access_log off;
error_log logs/Discord-error.log;
location / {
proxy_pass https://dl-discordapp-net/;
2024-09-05 10:44:21 +08:00
include Proxy.conf;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name media.discordapp.net;
server_name images-ext-2.discordapp.net;
server_name images-ext-1.discordapp.net;
include cert.conf;
2024-09-05 10:44:21 +08:00
#access_log logs/Discord-access.log main buffer=4k;
access_log off;
error_log logs/Discord-error.log;
location / {
2024-09-05 10:44:21 +08:00
proxy_pass https://dl-discordapp-net/;
proxy_http_version 1.1;
proxy_set_header Host media.discordapp.net;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Accept-Encoding '';
proxy_ssl_server_name on;
proxy_buffering off;
}
}
# Discord End