后端端口由5002改为5052,避免trae端口冲突

This commit is contained in:
super committed 2026-05-14 00:37:48 +08:00
1 parent 8c8a65d838
commit da42832087
14 files changed
+30 -19

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ AUTH_LOCAL_JWT_ISSUER=hxops-backend
AUTH_LOCAL_JWT_AUDIENCE=hxops-frontend
AUTH_LOCAL_JWT_EXPIRES_HOURS=12
DATABASE_URL=postgresql://postgres:@localhost:5432/hxops_db
# SiliconFlow API Configuration
GJL_API_KEY=sk-umfzicwjcvwampzblqczckkqojiscyybtaljzbsvpdwdvxlu
GJL_API_BASE=https://api.siliconflow.cn/v1
+3 -2
View File
@@ -13,5 +13,6 @@ def make_shell_context():
return {'db': db, 'User': User, 'Agent': Agent}
if __name__ == '__main__':
# MacOS ControlCenter uses port 5000, so we use 5002
app.run(host='0.0.0.0', port=5002)
# MacOS ControlCenter uses port 5000, so we use 5052
# (原5002易被Trae IDE自动端口转发劫持)
app.run(host='0.0.0.0', port=5052)
+1 -1
View File
@@ -17,7 +17,7 @@ username = sys.argv[1]
password = sys.argv[2]
# 测试登录 API
url = "http://localhost:5002/api/user/login"
url = "http://localhost:5052/api/user/login"
headers = {"Content-Type": "application/json"}
data = {"username": username, "password": password}
+1 -1
View File
@@ -6,7 +6,7 @@
import requests
import json
BASE_URL = "http://127.0.0.1:5002"
BASE_URL = "http://127.0.0.1:5052"
def test_auth_header_format():
"""测试不同的认证头格式"""
+1 -1
View File
@@ -7,7 +7,7 @@ import requests
import json
import sys
BASE_URL = "http://127.0.0.1:5002"
BASE_URL = "http://127.0.0.1:5052"
def test_login():
"""测试登录 API"""