Compare commits

...

3 Commits

Author SHA1 Message Date
Mashiro a2a8734147
Update README.md 2021-10-23 23:06:11 +08:00
mashirozx 3d5ff59de0 proxy instead of rewrite 2021-10-23 22:59:56 +08:00
mashirozx 241d025459 更换pximg镜像 2021-10-23 22:36:59 +08:00
3 changed files with 19 additions and 10 deletions

View File

@ -5,12 +5,14 @@
使用说明见 <https://2heng.xin/2017/09/19/pixiv/>
请在[此处](https://github.com/mashirozx/Pixiv-Nginx/releases)下载稳定版`Source code
(zip)`;或者在本页点击下图所示的按键下载以获取最新版。
![](https://view.moezx.cc/images/2018/09/17/git.png)
在本页点击下图所示的按键下载以获取最新版。
![下载方法](https://view.moezx.cc/images/2018/09/17/git.png)
如遇本页下载速度过慢,可尝试通过[国内镜像](https://git.moezx.cc/mirrors/Pixiv-Nginx)下载。
![镜像下载方法](https://view.moezx.cc/images/2021/10/23/c5a92987653ea0c6921b1a461401cfec.png)
### LICENSE
This is a fork of [nginx/nginx](https://github.com/nginx/nginx), so you should always follow its [2-clause BSD-like license](http://nginx.org/LICENSE).

View File

@ -112,15 +112,22 @@ server {
ssl_certificate_key ca/pixiv.net.key;
location / {
rewrite ^/(.*)$ https://i.pixiv.cat/$1 redirect;
set $pximg_url i.pixiv.re;
#rewrite ^/(.*)$ https://$pximg_url/$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;
resolver 223.5.5.5;
proxy_pass https://$pximg_url;
proxy_set_header Host $pximg_url;
proxy_ssl_server_name on;
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 @@
5812
4624