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

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

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