2018-09-17 18:29:24 +08:00
|
|
|
|
|
|
|
|
|
#user nobody;
|
2024-08-31 18:24:05 +08:00
|
|
|
|
worker_processes 2;
|
2018-09-17 18:29:24 +08:00
|
|
|
|
|
|
|
|
|
#error_log logs/error.log;
|
|
|
|
|
#error_log logs/error.log notice;
|
|
|
|
|
#error_log logs/error.log info;
|
|
|
|
|
|
2024-08-31 18:24:05 +08:00
|
|
|
|
#pid logs/nginx.pid;
|
2018-09-17 18:29:24 +08:00
|
|
|
|
events {
|
Add files via upload
Update the upstream of Steam, Pixiv, E-hentai
Add Server :
Discord (IPv4)
Instagram (IPv6 Only, Local DNS rewrite required to rewrite all subdomains)
WallHaven (IPv4, image CDN Only, excluding pages)
Reddit (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitter (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitch (IPv4, Local DNS And DoH were required to rewrite all subdomains)
GoogleCDN (File Server IPv6 Only, website pages and IPv4 servers were not included, Local DNS rewrite required to rewrite all subdomains)
2024-08-27 18:34:08 +08:00
|
|
|
|
worker_connections 32767;
|
2018-09-17 18:29:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
http {
|
2024-08-31 18:24:05 +08:00
|
|
|
|
resolver 223.6.6.6;
|
|
|
|
|
resolver_timeout 10s;
|
Add files via upload
Update the upstream of Steam, Pixiv, E-hentai
Add Server :
Discord (IPv4)
Instagram (IPv6 Only, Local DNS rewrite required to rewrite all subdomains)
WallHaven (IPv4, image CDN Only, excluding pages)
Reddit (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitter (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitch (IPv4, Local DNS And DoH were required to rewrite all subdomains)
GoogleCDN (File Server IPv6 Only, website pages and IPv4 servers were not included, Local DNS rewrite required to rewrite all subdomains)
2024-08-27 18:34:08 +08:00
|
|
|
|
#include mime.types;
|
|
|
|
|
#default_type application/octet-stream;
|
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3 TLSv1 TLSv1.1 SSLv2 SSLv3;
|
|
|
|
|
#ssl_ciphers "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256";
|
|
|
|
|
log_format main '[$time_local]- 客户端地址:"$remote_addr" 请求耗时"$request_time" 域名:$http_host 监听地址:$server_addr 监听端口:$server_port $server_protocol\n 上游状态"$upstream_status" 上游地址:"$upstream_addr" $status 总字节数$body_bytes_sent\n "$http_referer" "$http_x_forwarded_for" \n "$request"\n';# "$http_user_agent"
|
|
|
|
|
access_log logs/access.log main buffer=4k;
|
|
|
|
|
fastcgi_buffers 16 128k;
|
2018-09-17 18:29:24 +08:00
|
|
|
|
|
2021-01-24 17:44:59 +08:00
|
|
|
|
sendfile on;
|
2018-09-17 18:29:24 +08:00
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
|
|
|
|
|
#keepalive_timeout 0;
|
Add files via upload
Update the upstream of Steam, Pixiv, E-hentai
Add Server :
Discord (IPv4)
Instagram (IPv6 Only, Local DNS rewrite required to rewrite all subdomains)
WallHaven (IPv4, image CDN Only, excluding pages)
Reddit (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitter (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitch (IPv4, Local DNS And DoH were required to rewrite all subdomains)
GoogleCDN (File Server IPv6 Only, website pages and IPv4 servers were not included, Local DNS rewrite required to rewrite all subdomains)
2024-08-27 18:34:08 +08:00
|
|
|
|
|
|
|
|
|
keepalive_timeout 120;
|
|
|
|
|
keepalive_requests 30000;
|
|
|
|
|
client_max_body_size 200m;
|
2018-09-17 18:29:24 +08:00
|
|
|
|
server_names_hash_max_size 512;
|
|
|
|
|
server_names_hash_bucket_size 1024;
|
Add files via upload
Update the upstream of Steam, Pixiv, E-hentai
Add Server :
Discord (IPv4)
Instagram (IPv6 Only, Local DNS rewrite required to rewrite all subdomains)
WallHaven (IPv4, image CDN Only, excluding pages)
Reddit (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitter (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitch (IPv4, Local DNS And DoH were required to rewrite all subdomains)
GoogleCDN (File Server IPv6 Only, website pages and IPv4 servers were not included, Local DNS rewrite required to rewrite all subdomains)
2024-08-27 18:34:08 +08:00
|
|
|
|
gzip on;
|
|
|
|
|
include Pixiv.conf;
|
|
|
|
|
include E-hentai.conf;
|
2024-08-31 18:24:05 +08:00
|
|
|
|
#include Steam.conf;
|
|
|
|
|
#include DLsite.conf;#目前已不需要,只改hosts就行了
|
|
|
|
|
#include Reddit.conf;
|
|
|
|
|
#include Wallhaven.conf;
|
|
|
|
|
#include iwara.conf;#目前已不需要
|
|
|
|
|
#include Discord.conf;
|
|
|
|
|
#include Twitter.conf;
|
|
|
|
|
#include Twitch.conf;
|
|
|
|
|
#include Instagram.conf;
|
|
|
|
|
#include PayPal.conf;
|
|
|
|
|
#include nhentai.conf;
|
|
|
|
|
#include GoogleVideo.conf;
|
Add files via upload
Update the upstream of Steam, Pixiv, E-hentai
Add Server :
Discord (IPv4)
Instagram (IPv6 Only, Local DNS rewrite required to rewrite all subdomains)
WallHaven (IPv4, image CDN Only, excluding pages)
Reddit (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitter (IPv4, Local DNS rewrite required to rewrite all subdomains)
Twitch (IPv4, Local DNS And DoH were required to rewrite all subdomains)
GoogleCDN (File Server IPv6 Only, website pages and IPv4 servers were not included, Local DNS rewrite required to rewrite all subdomains)
2024-08-27 18:34:08 +08:00
|
|
|
|
}
|