diff --git a/.env b/.env index 4df3860..a54ee1f 100644 --- a/.env +++ b/.env @@ -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 \ No newline at end of file +PORT=80 \ No newline at end of file diff --git a/main.go b/main.go index b5b4b9a..a700486 100644 --- a/main.go +++ b/main.go @@ -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