Fix issue #1492 - add 'node.ssl_dist_optfile' to support ssl distributation

This commit is contained in:
Feng Lee 2018-02-16 18:40:03 +08:00
parent 06b8db1967
commit 79902be40e
2 changed files with 17 additions and 1 deletions

View File

@ -236,10 +236,18 @@ node.crash_dump = {{ platform_log_dir }}/crash.dump
## Value: Enum
## - inet_tcp: the default; handles TCP streams with IPv4 addressing.
## - inet6_tcp: handles TCP with IPv6 addressing.
## - inet_ssl: using SSL for Erlang Distribution.
##
## vm.args: -proto_dist inet_tcp
node.proto_dist = inet_tcp
## Specify SSL Options in the file if using SSL for Erlang Distribution.
##
## Value: File
##
## vm.args: -ssl_dist_optfile <File>
node.ssl_dist_optfile = {{ platform_etc_dir }}/ssl_dist.conf
## Sets the net_kernel tick time. TickTime is specified in seconds.
## Notice that all communicating nodes are to have the same TickTime
## value specified.

View File

@ -170,7 +170,15 @@ end}.
%% @doc The erlang distributed protocol
{mapping, "node.proto_dist", "vm_args.-proto_dist", [
%%{default, "inet_tcp"}
{default, "inet_tcp"},
{datatype, {enum, [inet_tcp, inet6_tcp, inet_ssl]}},
hidden
]}.
%% @doc Specify SSL Options in the file if using SSL for erlang distribution
{mapping, "node.ssl_dist_optfile", "vm_args.-ssl_dist_optfile", [
{datatype, string},
hidden
]}.
%% @doc Secret cookie for distributed erlang node