diff --git a/config/config.go b/config/config.go index 292cc39..04d161f 100755 --- a/config/config.go +++ b/config/config.go @@ -8,13 +8,12 @@ import ( ) var ( - Port string - StoreType string - StoreAddr string - StoreUser string - StorePass string - Root string - MyTinyTodo string + Port string + StoreType string + StoreAddr string + StoreUser string + StorePass string + Root string ) func init() { @@ -32,7 +31,6 @@ func Refresh() { as.Append(args.STRING, "storeaddr", "addr of store", "") as.Append(args.STRING, "storeuser", "user of store", "") as.Append(args.STRING, "storepass", "pass of store", "") - as.Append(args.STRING, "mtt", "url of php server", "http://localhost:38808") as.Append(args.STRING, "root", "root of static files", "./public") if err := as.Parse(); err != nil { panic(err) @@ -44,5 +42,4 @@ func Refresh() { StoreUser = as.Get("storeuser").GetString() StorePass = as.Get("storepass").GetString() Root = as.Get("root").GetString() - MyTinyTodo = as.Get("mtt").GetString() } diff --git a/server/routes.go b/server/routes.go index b03349b..420e38a 100755 --- a/server/routes.go +++ b/server/routes.go @@ -96,7 +96,7 @@ func (s *Server) phpProxy(w http.ResponseWriter, r *http.Request) { s.static(w, r) return } - url, err := url.Parse(config.MyTinyTodo) + url, err := url.Parse("http://127.0.0.1:64123") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } else {