From 6cdc1c76acf87f94a5d33983a1fdf1abd07f3053 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Sun, 28 Sep 2025 10:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++-- main.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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