Skip to content

Commit 0f170c5

Browse files
committed
Merge branch 'feature/add-peering-options' into feature/convert-to-ansible-role
2 parents 220fc53 + ea135c7 commit 0f170c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

templates/ipfs/home/ipfs/ipfs_default_config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,18 @@
194194
"Router": ""
195195
},
196196
"Peering": {
197+
{% if ipfs_peering_nodes is defined and ipfs_peering_nodes|length %}
198+
"Peers":[
199+
{% for node in ipfs_peering_nodes %}
200+
{
201+
"ID": node.id,
202+
"Addrs": node.addrs
203+
}{% if not loop.last %},{% endif %}
204+
{% endfor %}
205+
]
206+
{% else %}
197207
"Peers": null
208+
{% endif %}
198209
},
199210
"Reprovider": {
200211
"Interval": "12h",

0 commit comments

Comments
 (0)