Skip to content

Commit df35113

Browse files
change node auth (#132)
1 parent 706dcc6 commit df35113

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

generator/config-gen/sworker-config.gen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ async function genSworkerConfig(config, outputCfg) {
55
const sworkerConfig = {
66
data_path: "/opt/crust/data/files/sworker_data",
77
base_path: "/opt/crust/data/sworker",
8-
base_url: "http://0.0.0.0:12222/api/v0",
9-
ipfs_url : "http://0.0.0.0:5001/api/v0",
8+
base_url: "http://127.0.0.1:12222/api/v0",
9+
ipfs_url : "http://127.0.0.1:5001/api/v0",
1010
chain: getSharedChainConfig(config),
1111
}
1212
return {

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ install_crust_node()
133133
mkdir -p $installdir/logs
134134
cp -r $basedir/etc $installdir/
135135
cp $basedir/config.yaml $installdir/
136+
chown root:root $installdir/config.yaml
137+
chmod 0600 $installdir/config.yaml
136138
cp -r $basedir/scripts $installdir/
137139
fi
138140

scripts/gen_config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ COMMENT
6464
rm -f $BUILD_DIR/config.yaml
6565
cp -r $BUILD_DIR/.tmp/* $BUILD_DIR/
6666
rm -rf $BUILD_DIR/.tmp
67+
chown -R root:root $BUILD_DIR
68+
chmod -R 0600 $BUILD_DIR
6769

6870
log_success "Configurations generated at: $BUILD_DIR"

0 commit comments

Comments
 (0)