Update i.pximg.net proxy

pull/56/merge v2.9
mashirozx 2021-01-24 17:44:59 +08:00
parent a892ef014c
commit 20cdd42069
3 changed files with 105 additions and 106 deletions

View File

@ -7,8 +7,6 @@ worker_processes 1;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
@ -23,7 +21,6 @@ http {
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;

View File

@ -112,13 +112,15 @@ server {
ssl_certificate_key ca/pixiv.net.key;
location / {
proxy_pass https://i-pximg-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;
rewrite ^/(.*)$ https://i.pixiv.cat/$1 redirect;
# proxy_pass https://i-pximg-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;
}
}

View File

@ -1 +1 @@
2948
5812