parent
fa6dce4c56
commit
99f38da618
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@ all:
|
||||||
git pull
|
git pull
|
||||||
echo "build it!"
|
echo "build it!"
|
||||||
GO111MODULE=off go build -v -x
|
GO111MODULE=off go build -v -x
|
||||||
su -c ./go.wit.com
|
./go.wit.com
|
||||||
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com"
|
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com"
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
|
|
6
main.go
6
main.go
|
@ -98,7 +98,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
// used for uptime monitor checking
|
// used for uptime monitor checking
|
||||||
if tmp == "/uptime" {
|
if tmp == "/uptime" {
|
||||||
fmt.Fprintln(w, "OK")
|
writeFile(w, "uptime.html")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Warn("BAD URL =", url, "REPO URL =", repourl)
|
log.Warn("BAD URL =", url, "REPO URL =", repourl)
|
||||||
|
@ -149,8 +149,8 @@ func main() {
|
||||||
// }
|
// }
|
||||||
log.Println("found log =", versionMap["go.wit.com/log"])
|
log.Println("found log =", versionMap["go.wit.com/log"])
|
||||||
http.HandleFunc("/", okHandler)
|
http.HandleFunc("/", okHandler)
|
||||||
go https()
|
// go https()
|
||||||
err := http.ListenAndServe(":80", nil)
|
err := http.ListenAndServe(":2520", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error starting server:", err)
|
log.Println("Error starting server:", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ go.wit.com/apps/control-panel-cloudflare git.wit.org/wit/control-panel-cloudflar
|
||||||
go.wit.com/apps/control-panel-vpn git.wit.org/jcarr/control-panel-vpn
|
go.wit.com/apps/control-panel-vpn git.wit.org/jcarr/control-panel-vpn
|
||||||
go.wit.com/apps/go-gui-toolkits git.wit.org/gui/go-gui-toolkits toolkit build helper
|
go.wit.com/apps/go-gui-toolkits git.wit.org/gui/go-gui-toolkits toolkit build helper
|
||||||
go.wit.com/apps/go.wit.com git.wit.org/jcarr/go.wit.com
|
go.wit.com/apps/go.wit.com git.wit.org/jcarr/go.wit.com
|
||||||
|
go.wit.com/apps/powerpaneld git.wit.org/jcarr/powerpaneld
|
||||||
go.wit.com/apps/go-clone git.wit.org/gui/go-clone
|
go.wit.com/apps/go-clone git.wit.org/gui/go-clone
|
||||||
|
|
||||||
# gui toolkit packages
|
# gui toolkit packages
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
OK12358
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue