Skip to content

Commit 7f6c971

Browse files
committed
Add support for configuring peering nodes
1 parent a9aee2b commit 7f6c971

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
@@ -201,7 +201,18 @@
201201
"Router": ""
202202
},
203203
"Peering": {
204+
{% if ipfs_peering_nodes is defined and ipfs_peering_nodes|length %}
205+
"Peers":[
206+
{% for node in ipfs_peering_nodes %}
207+
{
208+
"ID": node.id,
209+
"Addrs": node.addrs
210+
}{% if not loop.last %},{% endif %}
211+
{% endfor %}
212+
]
213+
{% else %}
204214
"Peers": null
215+
{% endif %}
205216
},
206217
"DNS": {
207218
"Resolvers": {}

0 commit comments

Comments
 (0)