mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-06-02 15:32:30 +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
|
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||||
|
|
||||||
RUN adduser --disabled-password futurebit
|
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 mkdir -p /opt/apolloapi
|
||||||
RUN chown -R futurebit /opt
|
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
|
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 ###
|
### TOR ###
|
||||||
usermod -a -G debian-tor futurebit
|
usermod -a -G debian-tor futurebit
|
||||||
cp $APOLLO_DIR/backend/torrc /etc/tor/torrc
|
cp $APOLLO_DIR/backend/torrc /etc/tor/torrc
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
# makes client run in background
|
|
||||||
server=1
|
server=1
|
||||||
rpcuser=futurebit
|
rpcuser=futurebit
|
||||||
rpcpassword=futurebit
|
rpcpassword=vw28PnhzS5Wf
|
||||||
daemon=0
|
daemon=0
|
||||||
maxconnections=32
|
maxconnections=32
|
||||||
upnp=1
|
upnp=1
|
||||||
uacomment=FutureBit-Apollo-Node
|
uacomment=FutureBit-Apollo-Node
|
||||||
#USER_INPUT_START
|
|
||||||
hello=world
|
|
||||||
#USER_INPUT_END
|
|
||||||
|
@ -4,7 +4,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
user: 1000:1000
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- .:/opt/apolloapi
|
- .:/opt/apolloapi
|
||||||
command: sh -c "yarn --production=false && yarn dev"
|
command: sh -c "yarn --production=false && yarn dev"
|
||||||
@ -16,7 +16,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
user: 1000:1000
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- ./apolloui:/app
|
- ./apolloui:/app
|
||||||
command: sh -c "npm start"
|
command: sh -c "npm start"
|
||||||
|
@ -16,7 +16,7 @@ module.exports.auth = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeSystemPassword (password) {
|
changeSystemPassword (password) {
|
||||||
exec(`sudo usermod --password ${password} futurebit`)
|
exec(`echo "futurebit:${password}" | sudo chpasswd`)
|
||||||
},
|
},
|
||||||
|
|
||||||
async changeNodeRpcPassword (password) {
|
async changeNodeRpcPassword (password) {
|
||||||
|
Loading…
Reference in New Issue
Block a user