mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2024-12-28 09:09:29 -05:00
deploy
This commit is contained in:
parent
2e4977a12b
commit
cde5235568
18
deploy/kovan/docker-compose.yml
Normal file
18
deploy/kovan/docker-compose.yml
Normal 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
|
@ -2,7 +2,7 @@ version: '2.2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
relayer:
|
relayer:
|
||||||
build: ./
|
build: ../../
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
2
index.js
2
index.js
@ -1,5 +1,5 @@
|
|||||||
const { numberToHex, toWei, toHex, toBN, toChecksumAddress } = require('web3-utils')
|
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 { fetchGasPrice, isValidProof, fetchDAIprice, isKnownContract } = require('./utils')
|
||||||
const Web3 = require('web3')
|
const Web3 = require('web3')
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
|
Loading…
Reference in New Issue
Block a user