Merge pull request #50 from allenx555/master

add exhentai support
This commit is contained in:
Mashiro 2020-12-05 13:52:51 +08:00 committed by GitHub
commit 2290278d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 2 deletions

View File

@ -29,7 +29,7 @@ http {
#keepalive_timeout 0; #keepalive_timeout 0;
keepalive_timeout 65; keepalive_timeout 65;
client_max_body_size 100m;
server_names_hash_max_size 512; server_names_hash_max_size 512;
server_names_hash_bucket_size 1024; server_names_hash_bucket_size 1024;

View File

@ -421,3 +421,31 @@ server {
proxy_buffering off; proxy_buffering off;
} }
} }
upstream exhentai-lb {
server 178.175.128.252:443;
server 178.175.128.254:443;
server 178.175.129.252:443;
server 178.175.129.254:443;
server 178.175.132.20:443;
server 178.175.132.22:443;
}
server {
listen 443 ssl;
server_name exhentai.org;
ssl_certificate ca/pixiv.net.crt;
ssl_certificate_key ca/pixiv.net.key;
location / {
proxy_pass https://exhentai-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;
}
}

4
hosts
View File

@ -117,6 +117,10 @@
127.0.0.1 archiveofourown.org 127.0.0.1 archiveofourown.org
# AO3 end # AO3 end
# Exhentai Start
127.0.0.1 exhentai.org
# Exhentai end
# Nyaa Start # Nyaa Start
127.0.0.1 nyaa.si 127.0.0.1 nyaa.si
127.0.0.1 www.nyaa.si 127.0.0.1 www.nyaa.si

View File

@ -39,6 +39,7 @@ DNS.25 = nyaa.si
DNS.26 = *.nyaa.si DNS.26 = *.nyaa.si
DNS.27 = wikimedia.org DNS.27 = wikimedia.org
DNS.28 = upload.wikimedia.org DNS.28 = upload.wikimedia.org
DNS.29 = exhentai.org
[ v3_req ] [ v3_req ]
keyUsage = digitalSignature keyUsage = digitalSignature

View File

@ -2,4 +2,4 @@
2.第一次使用时直接使用「【限初次使用】一键生成根证书和子证书.bat」并将rootCA.crt安装到系统受信任的根证书列表即可生成的Pixiv.key和Pixiv.crt可替换软件自带的CA。 2.第一次使用时直接使用「【限初次使用】一键生成根证书和子证书.bat」并将rootCA.crt安装到系统受信任的根证书列表即可生成的Pixiv.key和Pixiv.crt可替换软件自带的CA。
3.需要添加域名时打开「config_childCA.txt」加入完后使用「【修改config_childCA.txt后使用】重新签发子证书.bat」只需将新生成的Pixiv.crt替换Nginx目录原先的文件即可 3.需要添加域名时打开「config_childCA.txt」加入完后使用「【修改config_childCA.txt后使用】重新签发子证书.bat」将新生成的Pixiv.crt替换Nginx目录原先的文件在系统host文件添加「127.0.0.1 域名」的字段, 并修改根目录「/conf/pixiv.conf」