From fffc53468ea42e80634c6a278aef7e83fb8d42f2 Mon Sep 17 00:00:00 2001 From: LowEntropyBody Date: Wed, 4 Nov 2020 18:17:40 +0800 Subject: [PATCH] Fix url error (#89) --- generator/config-gen/ipfs-config.gen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/config-gen/ipfs-config.gen.js b/generator/config-gen/ipfs-config.gen.js index 41bcec4..7b08dfd 100644 --- a/generator/config-gen/ipfs-config.gen.js +++ b/generator/config-gen/ipfs-config.gen.js @@ -18,7 +18,7 @@ async function genIpfsComposeConfig(config) { '/opt/crust/data/ipfs:/data/ipfs' ], entrypoint: '/sbin/tini --', - command: '/bin/sh -c "if [ ! -e \'/data/ipfs/config\' ]; then ipfs init; ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/37773; fi && /usr/local/bin/start_ipfs daemon --migrate=true"', + command: '/bin/sh -c "/usr/local/bin/start_ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/37773 && /usr/local/bin/start_ipfs daemon --migrate=true"', } }