add powerpaneld

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-06 16:34:16 -05:00
parent fa6dce4c56
commit 99f38da618
4 changed files with 13 additions and 4 deletions

View File

@ -2,7 +2,7 @@ all:
git pull
echo "build it!"
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"
goimports:

View File

@ -98,7 +98,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
// used for uptime monitor checking
if tmp == "/uptime" {
fmt.Fprintln(w, "OK")
writeFile(w, "uptime.html")
return
}
log.Warn("BAD URL =", url, "REPO URL =", repourl)
@ -149,8 +149,8 @@ func main() {
// }
log.Println("found log =", versionMap["go.wit.com/log"])
http.HandleFunc("/", okHandler)
go https()
err := http.ListenAndServe(":80", nil)
// go https()
err := http.ListenAndServe(":2520", nil)
if err != nil {
log.Println("Error starting server:", err)
}

View File

@ -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/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/powerpaneld git.wit.org/jcarr/powerpaneld
go.wit.com/apps/go-clone git.wit.org/gui/go-clone
# gui toolkit packages

8
resources/uptime.html Normal file
View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
OK12358
</body>
</html>