From 3e90a7475c4e17f4beb87e063135ee9e2c8b791a Mon Sep 17 00:00:00 2001 From: sp Date: Wed, 10 Mar 2021 22:57:13 +1100 Subject: [PATCH] added DSN config --- config.go | 1 + config.json | 1 + 2 files changed, 2 insertions(+) diff --git a/config.go b/config.go index 7229a0f..9e8f1f3 100644 --- a/config.go +++ b/config.go @@ -16,6 +16,7 @@ type configStaticHtml struct { type configuration struct { Host string Port string + DSN string TlsCert string TlsKey string Static []configStaticHtml diff --git a/config.json b/config.json index ae2b9ab..34b00d2 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,7 @@ { "Host":"0.0.0.0", "Port":"8080", + "DSN": "sp:sp@tcp(192.168.1.70:3306)/syd_credit?parseTime=true&loc=Australia%2FSydney", "TlsCert": "/home/sp/go/src/fullchain.pem", "TlsKey": "/home/sp/go/src/privkey.pem", "Debug": true,