Update i.pximg.net proxy

This commit is contained in:
mashirozx 2021-01-24 17:44:59 +08:00
parent a892ef014c
commit 20cdd42069
3 changed files with 105 additions and 106 deletions

View File

@ -1,34 +1,31 @@
#user nobody;
worker_processes 1;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
keepalive_timeout 65;
client_max_body_size 100m;
server_names_hash_max_size 512;
server_names_hash_bucket_size 1024;

View File

@ -112,13 +112,15 @@ server {
ssl_certificate_key ca/pixiv.net.key;
location / {
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;
rewrite ^/(.*)$ https://i.pixiv.cat/$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;
}
}
@ -264,7 +266,7 @@ server {
ssl_certificate_key ca/pixiv.net.key;
location ^~ /recaptcha/ {
rewrite ^(.*)$ https://www.recaptcha.net$1 break;
rewrite ^(.*)$ https://www.recaptcha.net$1 break;
}
location / {
@ -275,10 +277,10 @@ server {
}
upstream wikipedia-text-lb {
server 208.80.153.224:443;
#server 208.80.154.224:443;
server 91.198.174.192:443;
#server 103.102.166.224:443;
server 208.80.153.224:443;
#server 208.80.154.224:443;
server 91.198.174.192:443;
#server 103.102.166.224:443;
}
server {
@ -319,10 +321,10 @@ server {
}
}
upstream wikipedia-upload-lb {
server 208.80.153.240:443;
server 208.80.154.240:443;
server 91.198.174.208:443;
server 103.102.166.240:443;
server 208.80.153.240:443;
server 208.80.154.240:443;
server 91.198.174.208:443;
server 103.102.166.240:443;
}
server {
@ -381,7 +383,7 @@ server {
proxy_buffering off;
}
}
server {
server {
listen 443 ssl;
server_name *.archiveofourown.org;
server_name archiveofourown.org;
@ -422,12 +424,12 @@ server {
}
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 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 {
@ -450,8 +452,8 @@ server {
}
upstream e-hentai-lb {
server 104.20.26.25:443;
server 104.20.27.25:443;
server 104.20.26.25:443;
server 104.20.27.25:443;
}
server {

View File

@ -1 +1 @@
2948
5812