Merge branch 'feature/tunnel' of https://github.com/shocknet/api into feature/tunnel

This commit is contained in:
hatim boufnichel 2021-02-26 17:00:59 +01:00
commit 1dd30756f6
2 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,6 @@ DISABLE_SHOCK_ENCRYPTION=false
CACHE_HEADERS_MANDATORY=true
SHOCK_CACHE=true
TRUSTED_KEYS=true
LOCAL_TUNNEL_SERVER=http://tunnel.example.com
LOCAL_TUNNEL_SERVER=https://tunnel.rip
TORRENT_SEED_URL=https://webtorrent.shock.network
TORRENT_SEED_TOKEN=jibberish

View file

@ -239,10 +239,10 @@ const server = program => {
logger.info('Creating new tunnel... ')
}
const tunnel = await localtunnel(tunnelOpts)
logger.info('Tunnel created! connect to: ' + tunnel.url + ':80')
logger.info('Tunnel created! connect to: ' + tunnel.url)
const dataToQr = JSON.stringify({
internalIP: tunnel.url,
walletPort: 80, //change to 443 for https
walletPort: 443,
externalIP: tunnel.url
})
qrcode.generate(dataToQr, { small: true })