mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-25 07:08:11 +08:00
解决图片无法显示问题
This commit is contained in:
parent
2644885707
commit
08281ebec7
12
README.md
12
README.md
@ -17,16 +17,8 @@
|
|||||||
151.101.24.133 assets-cdn.github.com
|
151.101.24.133 assets-cdn.github.com
|
||||||
```
|
```
|
||||||
|
|
||||||
### 要饭
|
### 打赏~
|
||||||
|
[微信支付](https://view.moezx.cc/images/2018/05/28/WeChanQR.png) | [支付宝](https://view.moezx.cc/images/2018/05/28/AliPayQR.jpg) | [PayPal](https://paypal.me/mashirozx)
|
||||||
微信支付:
|
|
||||||
<img src="https://view.moezx.cc/images/2018/05/28/WeChanQR.png" width="200"/>
|
|
||||||
|
|
||||||
支付宝:
|
|
||||||
<img src="https://view.moezx.cc/images/2018/05/28/AliPayQR.jpg" width="200"/>
|
|
||||||
|
|
||||||
PayPal:
|
|
||||||
<https://paypal.me/mashirozx>
|
|
||||||
|
|
||||||
### LICENSE
|
### 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).
|
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).
|
||||||
|
@ -1 +1 @@
|
|||||||
5332
|
12432
|
||||||
|
250
图片无法显示备用配置/nginx.conf
Normal file
250
图片无法显示备用配置/nginx.conf
Normal file
@ -0,0 +1,250 @@
|
|||||||
|
|
||||||
|
#user nobody;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
http {
|
||||||
|
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;
|
||||||
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
#keepalive_timeout 0;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
server_names_hash_max_size 512;
|
||||||
|
server_names_hash_bucket_size 1024;
|
||||||
|
|
||||||
|
#gzip on;
|
||||||
|
|
||||||
|
upstream www-pixiv-net {
|
||||||
|
server 210.140.131.182:443;
|
||||||
|
server 210.140.131.180:443;
|
||||||
|
server 210.140.131.184:443;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream sketch-pixiv-net {
|
||||||
|
server 210.140.174.37:443;
|
||||||
|
server 210.140.170.179:443;
|
||||||
|
server 210.140.175.130:443;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream imgaz-pixiv-net {
|
||||||
|
server 210.140.131.145:443;
|
||||||
|
server 210.140.131.144:443;
|
||||||
|
server 210.140.131.147:443;
|
||||||
|
server 210.140.131.153:443;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream i-pximg-net {
|
||||||
|
server 210.140.92.140:443;
|
||||||
|
server 210.140.92.137:443;
|
||||||
|
server 210.140.92.139:443;
|
||||||
|
server 210.140.92.142:443;
|
||||||
|
server 210.140.92.134:443;
|
||||||
|
server 210.140.92.141:443;
|
||||||
|
server 210.140.92.143:443;
|
||||||
|
server 210.140.92.135:443;
|
||||||
|
server 210.140.92.136:443;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
rewrite ^(.*) https://$host$1 permanent;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name pixiv.net;
|
||||||
|
server_name www.pixiv.net;
|
||||||
|
server_name ssl.pixiv.net;
|
||||||
|
server_name accounts.pixiv.net;
|
||||||
|
server_name touch.pixiv.net;
|
||||||
|
server_name oauth.secure.pixiv.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
client_max_body_size 50M;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://www-pixiv-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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name i.pximg.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
rewrite ^/(.*)$ https://i.pixiv.cat/$1 redirect;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name sketch.pixiv.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://sketch-pixiv-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;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Proxying WebSockets
|
||||||
|
location /ws/ {
|
||||||
|
proxy_pass https://sketch-pixiv-net;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name factory.pixiv.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://210.140.131.180/;
|
||||||
|
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 dic.pixiv.net;
|
||||||
|
server_name en-dic.pixiv.net;
|
||||||
|
server_name sensei.pixiv.net;
|
||||||
|
server_name fanbox.pixiv.net;
|
||||||
|
server_name payment.pixiv.net.pixiv.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://210.129.120.50/;
|
||||||
|
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 imgaz.pixiv.net;
|
||||||
|
server_name comic.pixiv.net;
|
||||||
|
server_name novel.pixiv.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://imgaz-pixiv-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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name zh.wikipedia.org;
|
||||||
|
server_name zh-yue.wikipedia.org;
|
||||||
|
server_name wuu.wikipedia.org;
|
||||||
|
server_name ug.wikipedia.org;
|
||||||
|
server_name ja.wikipedia.org;
|
||||||
|
server_name zh.wikinews.org;
|
||||||
|
server_name zh.m.wikipedia.org;
|
||||||
|
server_name ug.m.wikipedia.org;
|
||||||
|
server_name zh.m.wikinews.org;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://103.102.166.224/;
|
||||||
|
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 www.google.com;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate ca/pixiv.net.crt;
|
||||||
|
ssl_certificate_key ca/pixiv.net.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1
图片无法显示备用配置/使用方法.txt
Normal file
1
图片无法显示备用配置/使用方法.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
用本文件夹内的 nginx.conf 替换根目录 conf 文件夹中的 nginx.conf 文件
|
Loading…
Reference in New Issue
Block a user