refactor: remove dns.app config
This commit is contained in:
parent
05782c4e4e
commit
d35b95d00f
|
@ -245,11 +245,12 @@ Note: probe messages are broadcast to all the specified ports.
|
||||||
|
|
||||||
cluster_dns_name {
|
cluster_dns_name {
|
||||||
desc {
|
desc {
|
||||||
en: """The domain name of the EMQX cluster."""
|
en: """The domain name from which to discover peer EMQX nodes' IP addresses.
|
||||||
zh: """指定 DNS A 记录的名字。emqx 会通过访问这个 DNS A 记录来获取 IP 地址列表,
|
Applicable when <code>cluster.discovery_strategy = dns</code>
|
||||||
然后拼接 cluster.dns.app 里指定的 APP 名得到集群中所有节点的列表。
|
"""
|
||||||
当 cluster.discovery_strategy 为 dns 时,此配置项才有效。
|
zh: """指定 DNS A 记录的名字。emqx 会通过访问这个 DNS A 记录来获取 IP 地址列表。
|
||||||
"""
|
当<code>cluster.discovery_strategy</code> 为 <code>dns</code> 时有效。
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
en: "Cluster Dns Name"
|
en: "Cluster Dns Name"
|
||||||
|
@ -257,19 +258,6 @@ Note: probe messages are broadcast to all the specified ports.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cluster_dns_app {
|
|
||||||
desc {
|
|
||||||
en: """The symbolic name of the EMQX service."""
|
|
||||||
zh: """用来与从 cluster.dns.name 获取的 IP 列表拼接得到节点名列表。
|
|
||||||
当 cluster.discovery_strategy 为 dns 时,此配置项才有效。
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
label {
|
|
||||||
en: "Cluster DNS App"
|
|
||||||
zh: "DNS前缀标识"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cluster_etcd_server {
|
cluster_etcd_server {
|
||||||
desc {
|
desc {
|
||||||
en: """List of endpoint URLs of the etcd cluster"""
|
en: """List of endpoint URLs of the etcd cluster"""
|
||||||
|
|
|
@ -288,15 +288,6 @@ fields(cluster_dns) ->
|
||||||
'readOnly' => true
|
'readOnly' => true
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
{"app",
|
|
||||||
sc(
|
|
||||||
string(),
|
|
||||||
#{
|
|
||||||
default => "emqx",
|
|
||||||
desc => ?DESC(cluster_dns_app),
|
|
||||||
'readOnly' => true
|
|
||||||
}
|
|
||||||
)}
|
|
||||||
];
|
];
|
||||||
fields(cluster_etcd) ->
|
fields(cluster_etcd) ->
|
||||||
[
|
[
|
||||||
|
@ -1291,8 +1282,7 @@ options(mcast, Conf) ->
|
||||||
];
|
];
|
||||||
options(dns, Conf) ->
|
options(dns, Conf) ->
|
||||||
[
|
[
|
||||||
{name, conf_get("cluster.dns.name", Conf)},
|
{name, conf_get("cluster.dns.name", Conf)}
|
||||||
{app, conf_get("cluster.dns.app", Conf)}
|
|
||||||
];
|
];
|
||||||
options(etcd, Conf) ->
|
options(etcd, Conf) ->
|
||||||
Namespace = "cluster.etcd.ssl",
|
Namespace = "cluster.etcd.ssl",
|
||||||
|
|
Loading…
Reference in New Issue