删除newAPI

This commit is contained in:
2025-06-04 22:13:19 +08:00
parent 08b2b6cb7c
commit 8c991f43d6
4 changed files with 24 additions and 111 deletions
+1 -26
View File
@@ -10,7 +10,7 @@ server {
server_name www.51easyai.com;
# 添加 HSTS 策略
add_header Strict-Transport-Security "max-age=31536000" always;
# add_header Strict-Transport-Security "max-age=31536000" always;
# ssl 版本控制
ssl_protocols TLSv1.2 TLSv1.3; # 只启用 TLS 1.2 和 TLS 1.3
@@ -105,28 +105,3 @@ server {
}
}
# chatapi 大语言模型转发子域名配置
server {
listen 80;
listen [::]:80;
server_name chatapi.51easyai.com;
# 用于 certbot 验证的配置
location /.well-known/acme-challenge/ {
root /var/www/certbot;
try_files $uri =404;
}
location / {
client_max_body_size 64m;
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:3000; # 请根据实际情况修改你的端口
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_read_timeout 300s; # GPT-4 需要较长的超时时间,请自行调整
}
}