mirror of https://github.com/bjdgyc/anylink.git
优化docker信息
This commit is contained in:
parent
d1167650a3
commit
e780afe18c
|
@ -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
|
||||
|
|
|
@ -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))),
|
||||
|
|
Loading…
Reference in New Issue