Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change node authority for hiding secrets #132

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"