-
Notifications
You must be signed in to change notification settings - Fork 1
/
defaults.go
44 lines (42 loc) · 877 Bytes
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package main
import (
"github.com/olebedev/config"
)
var (
cfg *config.Config
// DefaultConfig is the default config object
DefaultConfig = map[string]interface{}{
"server": map[string]interface{}{
"addr": ":9898",
"type": "tcp",
"tls": map[string]interface{}{
"verify": false,
"require": false,
"cert": "",
"key": "",
"ca": "",
"letsencrypt": map[string]interface{}{
"enable": false,
"domain": "example.org",
"cachedir": "/tmp/letsencrypt",
},
},
},
"remote": map[string]interface{}{
"addr": "",
"tls": map[string]interface{}{
"enable": true,
"verify": true,
"cert": "",
"key": "",
"ca": "",
"sysroots": true,
},
},
"log": map[string]interface{}{
"level": "info",
"contents": false,
"destination": "stdout",
},
}
)