mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-21 21:28:11 +08:00
perf: add app-api-pixiv-net
This commit is contained in:
parent
a8d5d94f54
commit
bfe9a4bcca
@ -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;
|
||||||
@ -332,4 +356,4 @@ server {
|
|||||||
proxy_set_header Accept-Encoding '';
|
proxy_set_header Accept-Encoding '';
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user