Add TLS cert configuration options for listeners on docker configs #473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added some changes to enable secure websocket, mqtt, and http by adding certificate configs in the options files for Docker. Both JSON and YAML are enabled.
Sorry, I am not very familiar with GO so pardon my coding style for it.
I followed the
examples/tls/main.go
file and generalized it for all listener types. You can even specify different certificates and keys per listener endpoint.tls_cert
is an optional config so if someone wanted both mqtt and mqtts or ws and wss, they can do so on separate ports.I have a few things I'm not so sure about and would like some feedback on:
tls_cert
? I figure it would be best to separate them from the existing fieldtlsConfig
. I originally had it as simplyssl
but not sure if the distinction would be confusing.tls_config
Thank you
Related Issues:
https://github.com/orgs/mochi-mqtt/discussions/419
#423