This commit is contained in:
Alexey 2019-11-14 14:27:09 +03:00
parent 2e4977a12b
commit cde5235568
3 changed files with 21 additions and 3 deletions

@ -0,0 +1,18 @@
version: '2.2'
services:
relayer:
build: ../../
restart: always
environment:
NODE_ENV: production
VIRTUAL_HOST: kovan.tornado.cash
LETSENCRYPT_HOST: kovan.tornado.cash
env_file: ./.env
healthcheck:
test: curl -sS http://127.0.0.1:8000 || exit 1
networks:
default:
external:
name: frontend_default

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

@ -1,5 +1,5 @@
const { numberToHex, toWei, toHex, toBN, toChecksumAddress } = require('web3-utils')
const { netId, rpcUrl, privateKey, mixers, defaultGasPrice } = require('./config')
const { netId, rpcUrl, privateKey, defaultGasPrice } = require('./config')
const { fetchGasPrice, isValidProof, fetchDAIprice, isKnownContract } = require('./utils')
const Web3 = require('web3')
const express = require('express')