fixes last
This commit is contained in:
1 parent
9f2e746163
commit
e786142391
2 files changed
+18
-2
No files matched your search
+13
-2
@@ -17,8 +17,19 @@ ipfs config --json Reprovider '{ "Interval": "22h", "Strategy": "pinned+mfs" }'
|
||||
# Keep connection manager within reasonable bounds
|
||||
ipfs config --json Swarm.ConnMgr '{ "Type": "basic", "LowWater": 50, "HighWater": 200, "GracePeriod": "20s" }'
|
||||
|
||||
# Disable public AutoConf when running with a private swarm key
|
||||
ipfs config --json AutoConf.Enabled false
|
||||
SWARM_KEY_PATH="/data/ipfs/swarm.key"
|
||||
|
||||
# Disable AutoConf only when running with a private swarm key
|
||||
if [ -f "$SWARM_KEY_PATH" ] && [ -s "$SWARM_KEY_PATH" ]; then
|
||||
ipfs config --json AutoConf.Enabled false
|
||||
ipfs config --json AutoTLS.Enabled false
|
||||
ipfs config Bootstrap --json "[]"
|
||||
ipfs config --json DNS.Resolvers "{}"
|
||||
ipfs config --json Ipns.DelegatedPublishers "[]"
|
||||
ipfs config --json Swarm.Transports.Network '{ "TCP": true, "Websocket": false }'
|
||||
else
|
||||
ipfs config --json AutoConf.Enabled true
|
||||
fi
|
||||
|
||||
# CORS for RPC API (visible only in docker network)
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
||||
|
||||
Reference in new issue
Block a user