v0.13.1 concession management and record, clients update, version report
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
This commit is contained in:
1 parent
f1ac4cbbe7
commit
6e8d80c788
30 files changed
+704
-81
No files matched your search
@@ -26,6 +26,10 @@ const (
|
||||
gracefulShutdownTimeout = time.Second * 5
|
||||
)
|
||||
|
||||
// version is set at link time (make: -X main.version=...); /health reports it
|
||||
// so a deployment can be checked against the build it should be running.
|
||||
var version = "dev"
|
||||
|
||||
func main() {
|
||||
// Check for CLI database commands
|
||||
if len(os.Args) > 1 && os.Args[1] == "db" {
|
||||
@@ -184,6 +188,7 @@ func main() {
|
||||
LogRequests: *logHTTP,
|
||||
TrustedProxies: trustedProxies,
|
||||
ProxyHeader: *proxyHeader,
|
||||
Version: version,
|
||||
})
|
||||
|
||||
// API Server configuration
|
||||
@@ -191,7 +196,7 @@ func main() {
|
||||
|
||||
// Start API server in a goroutine
|
||||
go func() {
|
||||
log.Printf("Chess API Server starting...")
|
||||
log.Printf("Chess API Server %s starting...", version)
|
||||
log.Printf("API Listening on: http://%s", apiAddr)
|
||||
log.Printf("Authentication: Enabled (JWT)")
|
||||
if *dev {
|
||||
|
||||
Reference in new issue
Block a user