Skip to content

Commit 4b6b42f

Browse files
committed
chore: 更新配置文件以调整API绑定和CORS设置
- 将BIND_ADDRESS从127.0.0.1改为0.0.0.0以允许外部访问 - 将BIND_PORT从8082调整为8089 - 禁用CORS_ENABLED并修正PostgreSQL数据库连接字符串格式
1 parent a786bc4 commit 4b6b42f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.file_classification_env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#DATABASE_URL=file_classification.db
99
#DATABASE_TYPE=sqlite
1010

11-
#DATABASE_URL=postgres:mypassword//postgres:@localhost:5432/file_classification
11+
#DATABASE_URL=postgres://postgres:mypassword@localhost:5432/file_classification
1212
#DATABASE_TYPE=postgres
1313

1414
# dev env
@@ -22,15 +22,15 @@ DATABASE_TYPE=sqlite
2222
#DATABASE_TYPE=postgres
2323

2424
# Web API 配置
25-
BIND_ADDRESS=127.0.0.1
26-
BIND_PORT=8082
25+
BIND_ADDRESS=0.0.0.0
26+
BIND_PORT=8089
2727

2828
# 日志配置
2929
RUST_LOG=info
3030
RUST_LOG_FILE=debug
3131

3232
# CORS 配置
33-
CORS_ENABLED=true
33+
CORS_ENABLED=false
3434
CORS_ORIGIN=http://localhost:8082
3535

3636
# 文件上传配置

0 commit comments

Comments
 (0)