user www www;
worker_processes auto;
worker_rlimit_nofile 51200;
stream {
log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_received|$session_time|$upstream_addr|$upstream_bytes_sent|$upstream_bytes_received|$upstream_connect_time';
}
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}
http {
include mime.types;
default_type application/octet-stream;
proxy_buffering off;
limit_req_zone $binary_remote_addr zone=one:10m rate=20r/m;
server {
listen 80;
server_name
gpt.aigcfast.com;
location /v1/ {
proxy_pass
https://api.openai.com;
proxy_set_header Host
api.openai.com;
proxy_set_header X-Real-IP $remote_addr;
}
}
}
---------------------------------分隔符-----------------------------------
无限制的 chatgpt 地址
https://gpt.aigcfast.com/