added cert_key and cert_file to defaults.ini

pull/1592/head
Torkel Ödegaard 10 years ago
parent 434a237764
commit c1d7bef768
  1. 3
      conf/defaults.ini
  2. 2
      pkg/setting/setting.go

@ -16,6 +16,9 @@ router_logging = false
; the path relative to the binary where the static (html/js/css) files are placed ; the path relative to the binary where the static (html/js/css) files are placed
static_root_path = public static_root_path = public
enable_gzip = false enable_gzip = false
; if https protocol
cert_file =
cert_key =
[database] [database]
; Either "mysql", "postgres" or "sqlite3", it's your choice ; Either "mysql", "postgres" or "sqlite3", it's your choice

@ -198,7 +198,7 @@ func NewConfigContext(config string) {
if server.Key("protocol").MustString("http") == "https" { if server.Key("protocol").MustString("http") == "https" {
Protocol = HTTPS Protocol = HTTPS
CertFile = server.Key("cert_file").String() CertFile = server.Key("cert_file").String()
KeyFile = server.Key("cert_file").String() KeyFile = server.Key("cert_key").String()
} }
Domain = server.Key("domain").MustString("localhost") Domain = server.Key("domain").MustString("localhost")

Loading…
Cancel
Save