Pixiv-Nginx/conf/Discord.conf
2024-09-02 21:30:13 +08:00

178 lines
4.5 KiB
Plaintext

# 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;
}
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;
location / {
proxy_pass https://DiscordApp-com/;
include proxy.params;
}
}
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;
}
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;
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;
include proxy.params;
}
}
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;
keepalive 32;
keepalive_time 1h;
keepalive_timeout 60s;
keepalive_requests 64;
}
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;
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;
location / {
proxy_pass https://support-Discord-com/;
include proxy.params;
}
}
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;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name dl.discordapp.net;
include cert.conf;
location / {
proxy_pass https://dl-discordapp-net/;
include proxy.params;
}
}
upstream media-discordapp-net {
server 162.159.128.232:443;
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 {
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;
location / {
proxy_pass https://media-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