Procházet zdrojové kódy

added DSN config

master
sp před 4 roky
rodič
revize
3e90a7475c
2 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. +1
    -0
      config.go
  2. +1
    -0
      config.json

+ 1
- 0
config.go Zobrazit soubor

@@ -16,6 +16,7 @@ type configStaticHtml struct {
type configuration struct {
Host string
Port string
DSN string
TlsCert string
TlsKey string
Static []configStaticHtml

+ 1
- 0
config.json Zobrazit soubor

@@ -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,

Načítá se…
Zrušit
Uložit