This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmdr-http2.yml
76 lines (57 loc) · 1.93 KB
/
cmdr-http2.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
app:
logger:
level: INFO # logrus based: OFF, TRACE, DEBUG, INFO, WARNING, ERROR, FATAL, PANIC
format: text # text (default), json, logfmt
#target: journal # missing or 'default': "$dir/$serverName.log" will be created under daemon mode; 'journal': log to stdout and stderr, and you could send its to journal
#dir: /var/log/$APPNAME # never used.
keep-empty-field: false # keep the field even if its value is empty
timestamp: # auto (enabled when level >= debug), true, false.
# journal mode:
# log message will be print to stdout and stderr directly;
# and, use systemd .service configuration to journal;
#
#
#
runmode: # prod, devel
cmdr-http2:
debug: true
client: # h2 client
tls:
enabled: true
cacert: root.pem
server-cert: server.pem
client-auth: true
cert: client.pem
key: client.key
locations:
- ./ci/certs
- $CFG_DIR/certs
server: # h2 server
# if cmdr.InDebugging() || cmdr.GetDebugMode() {
debug:
dump-sessions: false
dump-subscriptions: true
# }
type: gorilla # gin, iris, gorilla, default, ...
# The default ports for the whole mqttlib.
ports:
default: 5151
tls: 5152
websocket: 443
tls:
enabled: true
client-auth: false # true
cacert: root.pem # optional for client ca cert
cert: server-bundle.pem # for server cert, it MUST BE a bundle cert with all root ca cert chains
key: cert.key
locations:
- ./ci/certs
- $CFG_DIR/certs
websocket:
max-message-size: 32k # 2M
autocert:
enabled: false
domains: ["example.com"]
second-level-domains: ["api", "home", "res"]
dir-cache: ./ci/certs
tui: