This commit is contained in:
Alexey 2019-10-28 21:39:38 +03:00
parent cd7b94a46e
commit 2e4977a12b
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
version: '2'
version: '2.2'
services:
relayer:
@ -6,9 +6,11 @@ services:
restart: always
environment:
NODE_ENV: production
VIRTUAL_HOST: kovan.tornado.cash
LETSENCRYPT_HOST: kovan.tornado.cash
VIRTUAL_HOST: mainnet.tornado.cash
LETSENCRYPT_HOST: mainnet.tornado.cash
env_file: ./.env
healthcheck:
test: curl -sS http://127.0.0.1:8000 || exit 1
networks:
default:

View File

@ -33,8 +33,11 @@ const ethPriceInDai = toWei('200')
app.get('/', function (req, res) {
// just for testing purposes
res.send(`Tornado mixer relayer. Gas Price is ${JSON.stringify(gasPrices)}.
Mixer addresses are ${JSON.stringify(mixers)}`)
res.send('This is <a href=https://tornado.cash>tornado.cash</a> Relayer service. Check the /status for settings')
})
app.get('/status', function (req, res) {
res.json({ relayerAddress: web3.eth.defaultAccount, gasPrices, netId })
})
app.post('/relay', async (req, resp) => {