From 65dc2cf08e056077b75d73e213feca0567073928 Mon Sep 17 00:00:00 2001 From: "shengheng.lu" Date: Fri, 11 Dec 2020 18:45:24 +0800 Subject: [PATCH] feat: update e-hentai support and login support --- README.md | 4 +-- conf/pixiv.conf | 43 +++++++++++++++++++++++ hosts | 2 ++ 自签证书傻瓜式批处理包/config_childCA.txt | 2 ++ 4 files changed, 49 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d64a81..50af6e9 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ 使用说明见 -请在[此处](https://github.com/mashirozx/Pixiv-Nginx/releases)下载最新版`Source code -(zip)`;或者在本页点击下图所示的按键下载。 +请在[此处](https://github.com/mashirozx/Pixiv-Nginx/releases)下载稳定版`Source code +(zip)`;或者在本页点击下图所示的按键下载以获取最新版。 ![](https://view.moezx.cc/images/2018/09/17/git.png) 如遇本页下载速度过慢,可尝试通过[国内镜像](https://gitee.com/mashirozx/Pixiv-Nginx)下载。 diff --git a/conf/pixiv.conf b/conf/pixiv.conf index 2bbc13c..adc32e6 100644 --- a/conf/pixiv.conf +++ b/conf/pixiv.conf @@ -448,3 +448,46 @@ server { proxy_buffering off; } } + +upstream e-hentai-lb { + server 104.20.26.25:443; + server 104.20.27.25:443; +} + +server { + listen 443 ssl; + server_name e-hentai.org; + + + ssl_certificate ca/pixiv.net.crt; + ssl_certificate_key ca/pixiv.net.key; + + location / { + proxy_pass https://e-hentai-lb/; + 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 { + listen 443 ssl; + server_name forums.e-hentai.org; + + + ssl_certificate ca/pixiv.net.crt; + ssl_certificate_key ca/pixiv.net.key; + + location / { + proxy_pass https://94.100.18.243:443/; + 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; + } +} diff --git a/hosts b/hosts index d2ca871..1b6f182 100644 --- a/hosts +++ b/hosts @@ -119,6 +119,8 @@ # Exhentai Start 127.0.0.1 exhentai.org +127.0.0.1 e-hentai.org +127.0.0.1 forums.e-hentai.org # Exhentai end # Nyaa Start diff --git a/自签证书傻瓜式批处理包/config_childCA.txt b/自签证书傻瓜式批处理包/config_childCA.txt index 7b1307b..d0ab993 100644 --- a/自签证书傻瓜式批处理包/config_childCA.txt +++ b/自签证书傻瓜式批处理包/config_childCA.txt @@ -40,6 +40,8 @@ DNS.26 = *.nyaa.si DNS.27 = wikimedia.org DNS.28 = upload.wikimedia.org DNS.29 = exhentai.org +DNS.30 = e-hentai.org +DNS.31 = forums.e-hentai.org [ v3_req ] keyUsage = digitalSignature