lws extra params

This commit is contained in:
vdo 2022-06-09 09:05:25 +01:00
parent 02fad44359
commit 8d003479f7
4 changed files with 6 additions and 3 deletions

1
.env
View file

@ -17,6 +17,7 @@ MONEROD_accessControlAllowOriginList=*
LWS_TAG=0.17-15bce7f
LWS_PORT=8000
LWS_EXTRA_PARAMS=
#TOR_TAG=latest
TOR_TAG=0.4.7.7

View file

@ -34,7 +34,7 @@ Check the [wiki](https://github.com/vdo/xmr.sh/wiki/FAQ)
- [x] arm64 support for all images
- [x] monerod-lws support (experimental)
- [ ] Shellcheck via Github Actions
- [ ] Installation documentation
- [ ] Documentation
- [ ] monerod-proxy support for random node forwarding
- [ ] i2p service
- [ ] p2pool mining

View file

@ -38,7 +38,7 @@ x-monerod-command: &monerod-command
--public-node --no-igd
--enable-dns-blocklist --rpc-restricted-bind-ip=0.0.0.0
--rpc-restricted-bind-port=${MONEROD_RESTRICTED_RPC_PORT} --confirm-external-bind
--zmq-pub tcp://0.0.0.0:${MONEROD_ZMQ_PUB_PORT}--zmq-rpc-bind-port=${MONEROD_ZMQ_RPC_PORT} --zmq-rpc-bind-ip=0.0.0.0
--zmq-pub tcp://0.0.0.0:${MONEROD_ZMQ_PUB_PORT} --zmq-rpc-bind-port=${MONEROD_ZMQ_RPC_PORT} --zmq-rpc-bind-ip=0.0.0.0
--rpc-bind-port=${MONEROD_RPC_PORT} --rpc-bind-ip=0.0.0.0
${MONEROD_EXTRA_PARAMS}
@ -87,7 +87,7 @@ x-monero-lws-service: &monero-lws-service
command: >-
--rest-server http://0.0.0.0:8000 --daemon=tcp://monerod:${MONEROD_ZMQ_RPC_PORT}
--sub=tcp://monerod:${MONEROD_ZMQ_PUB_PORT} --log-level=4
--confirm-external-bind
--confirm-external-bind ${LWS_EXTRA_PARAMS}
volumes:
- ./data/monero-lws:/home/monero-lws/.bitmonero/
# ports:

View file

@ -187,12 +187,14 @@ configure_network() {
NETWORK="testnet"
sed -i "s/MONEROD_P2P_PORT=.*/MONEROD_P2P_PORT=28080/g" .env
sed -i "/MONEROD_EXTRA_PARAMS/s/$/ --testnet/g" .env
sed -i "/LWS_EXTRA_PARAMS/s/$/ --network test/g" .env
break
;;
"stagenet")
NETWORK="stagenet"
sed -i "s/MONEROD_P2P_PORT=.*/MONEROD_P2P_PORT=38080/g" .env
sed -i "/MONEROD_EXTRA_PARAMS/s/$/ --stagenet/g" .env
sed -i "/LWS_EXTRA_PARAMS/s/$/ --network stage/g" .env
break
;;
*) echo "Invalid network choice!" ;;