mirror of
https://github.com/hanzomsg/nats.go.git
synced 2026-10-30 20:30:40 +00:00
When a connected server returns information on other server, we can selectively use the information. Two cases here. 1. When the connected server was expressed as a hostname and we are doing TLS but the other implicit servers are bare IPs. Use the hostname during TLS. 2. When a connected server url had username and password, we can re-use those on implicit servers if it was not already defined. Signed-off-by: Derek Collison <[email protected]>
17 lines
248 B
Plaintext
17 lines
248 B
Plaintext
# Simple TLS config file
|
|
|
|
port: 4443
|
|
net: localhost # net interface
|
|
|
|
tls {
|
|
cert_file: "./configs/certs/server.pem"
|
|
key_file: "./configs/certs/key.pem"
|
|
timeout: 2
|
|
}
|
|
|
|
authorization {
|
|
user: derek
|
|
password: porkchop
|
|
timeout: 1
|
|
}
|