Update i.pximg.net proxy

This commit is contained in:
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; #error_log logs/error.log info;
#pid logs/nginx.pid; #pid logs/nginx.pid;
events { events {
worker_connections 1024; worker_connections 1024;
} }
@ -23,7 +21,6 @@ http {
# '"$http_user_agent" "$http_x_forwarded_for"'; # '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main; #access_log logs/access.log main;
sendfile on; sendfile on;
#tcp_nopush on; #tcp_nopush on;

View File

@ -112,13 +112,15 @@ server {
ssl_certificate_key ca/pixiv.net.key; ssl_certificate_key ca/pixiv.net.key;
location / { location / {
proxy_pass https://i-pximg-net; rewrite ^/(.*)$ https://i.pixiv.cat/$1 redirect;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_pass https://i-pximg-net;
proxy_set_header X-Real_IP $remote_addr; # proxy_set_header Host $http_host;
proxy_set_header User-Agent $http_user_agent; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding ''; # proxy_set_header X-Real_IP $remote_addr;
proxy_buffering off; # proxy_set_header User-Agent $http_user_agent;
# proxy_set_header Accept-Encoding '';
# proxy_buffering off;
} }
} }

View File

@ -1 +1 @@
2948 5812