Template updates (commit: 24e45d7)
Push to GitHub / mirror (push) Successful in 4s

This commit is contained in:
bryanpedini committed 2026-01-02 14:15:03 +00:00
1 parent 5915ceac1a
commit 064874de09
3 files changed
+5 -1

No files matched your search

+2
View File
@@ -1,4 +1,6 @@
---
app_name: Go Template Container Web Server
listen:
address: 0.0.0.0
port: 80
+2
View File
@@ -11,6 +11,7 @@ import (
type WebServer struct {
HTTPServer *http.Server
AppName string `yaml:"app_name"`
Listen WSListen `yaml:"listen"`
}
@@ -25,6 +26,7 @@ func (s *WebServer) Initialize() {
Address: "0.0.0.0",
Port: "80",
}
s.AppName = "Go Template Container Web Server"
// Attempt to read the config file
configFile, err := os.ReadFile("config.yml")
+1 -1
View File
@@ -20,7 +20,7 @@ func handleVersion(w http.ResponseWriter, r *http.Request) {
// Return (write) the version to the response body
tmpl.Execute(w, SiteInfo{
CommitId: COMMIT_ID,
Name: "YASKM",
Name: ws.AppName,
Version: APP_VERSION,
})
}