Skip to content

Commit b28d991

Browse files
committed
Allow parametrization of gc_period and disabling relay
1 parent 74197e5 commit b28d991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/ipfs/templates/home/ipfs/ipfs_default_config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"StorageMax": "{{ ipfs_storage_max }}",
88
"StorageGCWatermark": 90,
99
"BloomFilterSize": {{ ipfs_bloom_filter_size }},
10-
"GCPeriod": "1h",
10+
"GCPeriod": "{{ ipfs_gc_period | default('1h') }}",
1111
"HashOnRead": false,
1212
{% if ipfs_use_badger | default(False) %}
1313
"Spec": {
@@ -144,7 +144,7 @@
144144
"Swarm": {
145145
"DisableBandwidthMetrics": {{ ipfs_disable_bandwidth_metrics | default(False) | lower }},
146146
"DisableNatPortMap": true,
147-
"DisableRelay": false,
147+
"DisableRelay": {{ ipfs_disable_relay | default(False) | lower }},
148148
"EnableAutoNATService": false,
149149
"EnableAutoRelay": false,
150150
"EnableRelayHop": false,

0 commit comments

Comments
 (0)