Skip to content

Commit

Permalink
change node auth (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
LowEntropyBody authored Mar 9, 2021
1 parent 706dcc6 commit df35113
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/config-gen/sworker-config.gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions scripts/gen_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit df35113

Please sign in to comment.