mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2025-05-09 18:15:42 +08:00
201 lines
5.4 KiB
Plaintext
201 lines
5.4 KiB
Plaintext
# github Start
|
|
upstream Github-com {
|
|
server 20.205.243.166:443;
|
|
server 20.27.177.113:443;
|
|
server 20.200.245.247:443;
|
|
}
|
|
upstream codeload-github-com {
|
|
server 20.205.243.165:443;
|
|
server 20.27.177.114:443;
|
|
server 20.200.245.246:443;
|
|
}
|
|
upstream api-github-com {
|
|
server 20.205.243.168:443;
|
|
server 20.27.177.116:443;
|
|
server 20.200.245.245:443;
|
|
}
|
|
upstream redirect-github-com {
|
|
server 140.82.112.17:443;
|
|
server 140.82.113.17:443;
|
|
server 140.82.114.17:443;
|
|
server 140.82.112.18:443;
|
|
server 140.82.113.18:443;
|
|
server 140.82.114.18:443;
|
|
}
|
|
upstream edu-github-com {
|
|
server 140.82.112.21:443;
|
|
server 140.82.112.22:443;
|
|
server 140.82.113.21:443;
|
|
server 140.82.113.22:443;
|
|
server 140.82.114.21:443;
|
|
server 140.82.114.22: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 167.82.0.133:443;
|
|
server 167.82.20.133:443;
|
|
server 167.82.84.133:443;
|
|
server 167.82.88.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;
|
|
}
|
|
|
|
upstream githubassets-com {
|
|
server 185.199.109.154:443;
|
|
server 185.199.108.154:443;
|
|
server 185.199.110.154:443;
|
|
server 185.199.111.154:443;
|
|
server [2606:50c0:8000::154]:443;
|
|
server [2606:50c0:8001::154]:443;
|
|
server [2606:50c0:8002::154]:443;
|
|
server [2606:50c0:8003::154]:443;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name github.com;
|
|
server_name www.github.com;
|
|
server_name gist.github.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://Github-com/;
|
|
include shared-proxy-params-1.conf;
|
|
proxy_headers_hash_max_size 8192;
|
|
proxy_buffer_size 128k;
|
|
proxy_buffers 4 256k;
|
|
proxy_busy_buffers_size 256k;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name codeload.github.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://codeload-github-com/;
|
|
include shared-proxy-params-1.conf;
|
|
proxy_headers_hash_max_size 8192;
|
|
proxy_buffer_size 128k;
|
|
proxy_buffers 4 256k;
|
|
proxy_busy_buffers_size 256k;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name api.github.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://api-github-com/;
|
|
include shared-proxy-params-1.conf;
|
|
proxy_headers_hash_max_size 8192;
|
|
proxy_buffer_size 128k;
|
|
proxy_buffers 4 256k;
|
|
proxy_busy_buffers_size 256k;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name redirect.github.com copilot.github.com services.github.com community.github.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://redirect-github-com/;
|
|
include shared-proxy-params-1.conf;
|
|
proxy_headers_hash_max_size 8192;
|
|
proxy_buffer_size 128k;
|
|
proxy_buffers 4 256k;
|
|
proxy_busy_buffers_size 256k;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name education.github.com enterprise.github.com classroom.github.com central.github.com collector.github.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://edu-github-com/;
|
|
include shared-proxy-params-1.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 analytics.githubassets.com lab.github.com assets-cdn.github.com www.github.io pages.github.com resources.github.com developer.github.com partner.github.com desktop.github.com guides.github.com support.github.com;
|
|
server_name *.githubusercontent.com *.github.io;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://githubusercontent-com/;
|
|
include shared-proxy-params-1.conf;
|
|
proxy_set_header Range $http_range;
|
|
proxy_set_header If-Range $http_if_range;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name docs.github.com;
|
|
server_name githubassets.com;
|
|
server_name *.githubassets.com;
|
|
|
|
include cert.conf;
|
|
|
|
location / {
|
|
proxy_pass https://githubassets-com/;
|
|
include shared-proxy-params-1.conf;
|
|
proxy_set_header Range $http_range;
|
|
proxy_set_header If-Range $http_if_range;
|
|
}
|
|
}
|
|
# github End
|