Kaynağa Gözat

added DSN config

master
sp 4 yıl önce
ebeveyn
işleme
3e90a7475c
2 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. +1
    -0
      config.go
  2. +1
    -0
      config.json

+ 1
- 0
config.go Dosyayı Görüntüle

type configuration struct { type configuration struct {
Host string Host string
Port string Port string
DSN string
TlsCert string TlsCert string
TlsKey string TlsKey string
Static []configStaticHtml Static []configStaticHtml

+ 1
- 0
config.json Dosyayı Görüntüle

{ {
"Host":"0.0.0.0", "Host":"0.0.0.0",
"Port":"8080", "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", "TlsCert": "/home/sp/go/src/fullchain.pem",
"TlsKey": "/home/sp/go/src/privkey.pem", "TlsKey": "/home/sp/go/src/privkey.pem",
"Debug": true, "Debug": true,

Yükleniyor…
İptal
Kaydet