perf: add app-api-pixiv-net

This commit is contained in:
Mashiro 2020-09-16 10:45:41 +08:00 committed by GitHub
parent a8d5d94f54
commit bfe9a4bcca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,12 @@ upstream i-pximg-net {
server 210.140.92.145:443; server 210.140.92.145:443;
} }
upstream app-api-pixiv-net {
server 210.140.131.218:443;
server 210.140.131.223:443;
server 210.140.131.226:443;
}
server { server {
listen 80 default_server; listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent; rewrite ^(.*) https://$host$1 permanent;
@ -231,6 +237,24 @@ server {
} }
} }
server {
listen 443 ssl;
server_name app-api.pixiv.net;
ssl_certificate ca/pixiv.net.crt;
ssl_certificate_key ca/pixiv.net.key;
location / {
proxy_pass https://app-api-pixiv-net;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Accept-Encoding '';
proxy_buffering off;
}
}
server { server {
listen 443 ssl; listen 443 ssl;
server_name www.google.com; server_name www.google.com;