This commit is contained in:
		
							parent
							
								
									a2994f3905
								
							
						
					
					
						commit
						6cdc1c76ac
					
				
							
								
								
									
										4
									
								
								.env
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								.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 | ||||
| PORT=80 | ||||
							
								
								
									
										3
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Song367
						Song367