修改配置
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 55s

This commit is contained in:
Song367 2025-09-28 10:35:45 +08:00
parent a2994f3905
commit 6cdc1c76ac
2 changed files with 4 additions and 3 deletions

4
.env
View File

@ -10,6 +10,6 @@ MiniMaxApiURL=https://api.minimaxi.com/v1/t2a_v2
APP_ID=1364966010532270080
APP_KEY=a72c98fa-cbe3-449e-b004-36523437bc5d
SIG_EXP=3600
FILE_URL=http://14.103.170.252:6200/
FILE_URL=http://14.103.114.237/gongzheng-backend/
# Server Configuration
PORT=8080
PORT=80

View File

@ -91,6 +91,7 @@ func main() {
// Serve static files
router.Static("/static", "./static")
router.Static("/audio", "./audio") // 添加音频文件访问服务
// Get host and port from environment variables
host := os.Getenv("HOST")
@ -99,7 +100,7 @@ func main() {
}
port := os.Getenv("PORT")
if port == "" {
port = "8080"
port = "80"
}
// Start server