forked from wangbo/easyai
删除newAPI
This commit is contained in:
+1
-26
@@ -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 需要较长的超时时间,请自行调整
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user