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

View File

@ -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

View File

@ -2,7 +2,7 @@ version: '2.2'
services:
relayer:
build: ./
build: ../../
restart: always
environment:
NODE_ENV: production

View File

@ -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')