mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-21 21:28:11 +08:00
commit
2290278d6b
@ -29,7 +29,7 @@ http {
|
||||
|
||||
#keepalive_timeout 0;
|
||||
keepalive_timeout 65;
|
||||
|
||||
client_max_body_size 100m;
|
||||
server_names_hash_max_size 512;
|
||||
server_names_hash_bucket_size 1024;
|
||||
|
||||
|
@ -421,3 +421,31 @@ server {
|
||||
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
4
hosts
@ -117,6 +117,10 @@
|
||||
127.0.0.1 archiveofourown.org
|
||||
# AO3 end
|
||||
|
||||
# Exhentai Start
|
||||
127.0.0.1 exhentai.org
|
||||
# Exhentai end
|
||||
|
||||
# Nyaa Start
|
||||
127.0.0.1 nyaa.si
|
||||
127.0.0.1 www.nyaa.si
|
||||
|
@ -39,6 +39,7 @@ DNS.25 = nyaa.si
|
||||
DNS.26 = *.nyaa.si
|
||||
DNS.27 = wikimedia.org
|
||||
DNS.28 = upload.wikimedia.org
|
||||
DNS.29 = exhentai.org
|
||||
|
||||
[ v3_req ]
|
||||
keyUsage = digitalSignature
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
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」。
|
Loading…
Reference in New Issue
Block a user