mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-28 13:02:35 +02:00
Fix change system password, fix bitcoin.conf
This commit is contained in:
parent
c3f7832ea1
commit
33fe29f789
@ -28,6 +28,7 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||
|
||||
RUN adduser --disabled-password futurebit
|
||||
RUN grep -qxF 'futurebit ALL=(ALL) NOPASSWD:ALL' /etc/sudoers || echo 'futurebit ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||
RUN mkdir -p /opt/apolloapi
|
||||
RUN chown -R futurebit /opt
|
||||
|
||||
|
@ -94,6 +94,9 @@ arch=$(uname -m)
|
||||
|
||||
cp $APOLLO_DIR/backend/apollo-miner/bin/$arch/apollo-miner $APOLLO_DIR/backend/apollo-miner/futurebit-miner
|
||||
|
||||
### Bitcoind ###
|
||||
cp $APOLLO_DIR/backend/node/bin/$arch/bitcoind $APOLLO_DIR/backend/node/bitcoind
|
||||
|
||||
### TOR ###
|
||||
usermod -a -G debian-tor futurebit
|
||||
cp $APOLLO_DIR/backend/torrc /etc/tor/torrc
|
||||
|
@ -1,11 +1,7 @@
|
||||
# makes client run in background
|
||||
server=1
|
||||
rpcuser=futurebit
|
||||
rpcpassword=futurebit
|
||||
rpcpassword=vw28PnhzS5Wf
|
||||
daemon=0
|
||||
maxconnections=32
|
||||
upnp=1
|
||||
uacomment=FutureBit-Apollo-Node
|
||||
#USER_INPUT_START
|
||||
hello=world
|
||||
#USER_INPUT_END
|
||||
|
@ -4,7 +4,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
user: 1000:1000
|
||||
user: root
|
||||
volumes:
|
||||
- .:/opt/apolloapi
|
||||
command: sh -c "yarn --production=false && yarn dev"
|
||||
@ -16,7 +16,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
user: 1000:1000
|
||||
user: root
|
||||
volumes:
|
||||
- ./apolloui:/app
|
||||
command: sh -c "npm start"
|
||||
|
@ -16,7 +16,7 @@ module.exports.auth = {
|
||||
},
|
||||
|
||||
changeSystemPassword (password) {
|
||||
exec(`sudo usermod --password ${password} futurebit`)
|
||||
exec(`echo "futurebit:${password}" | sudo chpasswd`)
|
||||
},
|
||||
|
||||
async changeNodeRpcPassword (password) {
|
||||
|
Loading…
Reference in New Issue
Block a user