mirror of
https://github.com/hanzoai/pubsub-go.git
synced 2026-10-30 18:23:30 +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]>
22 lines
329 B
Plaintext
22 lines
329 B
Plaintext
# TLS config file
|
|
# Cert has no IPs
|
|
|
|
listen: localhost:5222
|
|
|
|
tls {
|
|
cert_file: "./configs/certs/server_noip.pem"
|
|
key_file: "./configs/certs/key_noip.pem"
|
|
timeout: 2
|
|
}
|
|
|
|
authorization {
|
|
user: derek
|
|
password: porkchop
|
|
timeout: 1
|
|
}
|
|
|
|
cluster {
|
|
listen: 127.0.0.1:5244
|
|
routes = [nats-route://127.0.0.1:5246]
|
|
}
|