mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-22 05:38:11 +08:00
Update i.pximg.net proxy
This commit is contained in:
parent
a892ef014c
commit
20cdd42069
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -381,7 +383,7 @@ server {
|
|||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name *.archiveofourown.org;
|
server_name *.archiveofourown.org;
|
||||||
server_name archiveofourown.org;
|
server_name archiveofourown.org;
|
||||||
|
@ -1 +1 @@
|
|||||||
2948
|
5812
|
||||||
|
Loading…
Reference in New Issue
Block a user