BUG修复

This commit is contained in:
2024-05-20 16:02:30 +08:00
parent 245a52a49a
commit a9db823b0a
4 changed files with 0 additions and 7358 deletions
-7
View File
@@ -35,15 +35,8 @@ func main() {
// if cp := os.Getenv("CONTEXT_PATH"); cp != "" {
contextPath = strings.TrimRight("/console", "/")
// }
http.Handle(contextPath+"/exec/", websocket.Handler(ExecContainer))
httpDir := http.FileServer(http.Dir(*localPath))
//http.Handle(contextPath+"/", http.StripPrefix("/console/", http_dir))
http.Handle(contextPath+"/", http.StripPrefix(contextPath+"/", httpDir))
// 仅index.html
if err := http.ListenAndServe(":"+*port, nil); err != nil {
panic(err)
}