优化docker信息

This commit is contained in:
bjdgyc 2021-12-28 03:48:37 +08:00
parent d1167650a3
commit e780afe18c
3 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,6 @@ case $var1 in
iptables -t nat -A POSTROUTING -s "${IPV4_CIDR}" -o eth0+ -j MASQUERADE
iptables -nL -t nat
/app/anylink "$@"
exec /app/anylink "$@"
;;
esac

View File

@ -18,6 +18,11 @@ func StartAdmin() {
r := mux.NewRouter()
r.Use(authMiddleware)
// 监控检测
r.HandleFunc("/status.html", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("ok"))
}).Name("index")
r.Handle("/", http.RedirectHandler("/ui/", http.StatusFound)).Name("index")
r.PathPrefix("/ui/").Handler(
// http.StripPrefix("/ui/", http.FileServer(http.Dir(base.Cfg.UiPath))),