Add https support to antietcd

This commit is contained in:
Vitaliy Filippov
2026-07-05 14:09:57 +03:00
parent 906388adaa
commit 5995c4a00f
+3
View File
@@ -48,6 +48,9 @@ class AntiEtcdAdapter
const antietcd_config = {
ip: selected[0].ip,
port: selected[0].port,
cert: config.antietcd_cert,
key: config.antietcd_key,
ca: config.etcd_ca,
data: config.antietcd_data_file || ((config.antietcd_data_dir || '/var/lib/vitastor') + '/mon_'+selected[0].port+'.json.gz'),
persist_filter: vitastor_persist_filter({ vitastor_prefix: config.etcd_prefix || '/vitastor' }),
node_id: cluster[selected[0].idx].replace(/^(https?:\/\/)/, ''), // same as in <cluster> below