diff --git a/generator/config-gen/sworker-config.gen.js b/generator/config-gen/sworker-config.gen.js index bc2f91b..baa7533 100644 --- a/generator/config-gen/sworker-config.gen.js +++ b/generator/config-gen/sworker-config.gen.js @@ -5,8 +5,8 @@ async function genSworkerConfig(config, outputCfg) { const sworkerConfig = { data_path: "/opt/crust/data/files/sworker_data", base_path: "/opt/crust/data/sworker", - base_url: "http://0.0.0.0:12222/api/v0", - ipfs_url : "http://0.0.0.0:5001/api/v0", + base_url: "http://127.0.0.1:12222/api/v0", + ipfs_url : "http://127.0.0.1:5001/api/v0", chain: getSharedChainConfig(config), } return { diff --git a/install.sh b/install.sh index 2e19388..7209f9a 100755 --- a/install.sh +++ b/install.sh @@ -133,6 +133,8 @@ install_crust_node() mkdir -p $installdir/logs cp -r $basedir/etc $installdir/ cp $basedir/config.yaml $installdir/ + chown root:root $installdir/config.yaml + chmod 0600 $installdir/config.yaml cp -r $basedir/scripts $installdir/ fi diff --git a/scripts/gen_config.sh b/scripts/gen_config.sh index 2a9a50e..d5aebcf 100755 --- a/scripts/gen_config.sh +++ b/scripts/gen_config.sh @@ -64,5 +64,7 @@ COMMENT rm -f $BUILD_DIR/config.yaml cp -r $BUILD_DIR/.tmp/* $BUILD_DIR/ rm -rf $BUILD_DIR/.tmp +chown -R root:root $BUILD_DIR +chmod -R 0600 $BUILD_DIR log_success "Configurations generated at: $BUILD_DIR"