Skip to content

Commit ea135c7

Browse files
committed
Add support for configuring peering nodes
1 parent 74197e5 commit ea135c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

roles/ipfs/templates/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)