diff --git a/deploy/kovan/docker-compose.yml b/deploy/kovan/docker-compose.yml new file mode 100644 index 0000000..2594476 --- /dev/null +++ b/deploy/kovan/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/docker-compose.yml b/deploy/mainnet/docker-compose.yml similarity index 80% rename from docker-compose.yml rename to deploy/mainnet/docker-compose.yml index a3dee7d..2f1c21c 100644 --- a/docker-compose.yml +++ b/deploy/mainnet/docker-compose.yml @@ -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: diff --git a/index.js b/index.js index 5172e62..6bf8044 100644 --- a/index.js +++ b/index.js @@ -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')