Skip to content

Commit 690fe1a

Browse files
committed
Add support for configuring peering nodes
1 parent 0f8145f commit 690fe1a

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
@@ -196,7 +196,18 @@
196196
"Router": ""
197197
},
198198
"Peering": {
199+
{% if ipfs_peering_nodes is defined and ipfs_peering_nodes|length %}
200+
"Peers":[
201+
{% for node in ipfs_peering_nodes %}
202+
{
203+
"ID": node.id,
204+
"Addrs": node.addrs
205+
}{% if not loop.last %},{% endif %}
206+
{% endfor %}
207+
]
208+
{% else %}
199209
"Peers": null
210+
{% endif %}
200211
},
201212
"DNS": {
202213
"Resolvers": {}

0 commit comments

Comments
 (0)