V
V
Vyacheslav Lebedev2015-05-30 14:10:03
Node.js
Vyacheslav Lebedev, 2015-05-30 14:10:03

How to set up subdomain on ngrok and run on node?

Good afternoon!
How to set up subdomain on ngrok and run on node?
Maybe I didn’t understand (didn’t see it in the docks ) and is this part of a paid subscription?
The code:

app.listen(config.get('port'), function() {
  return console.log('Listening on port', config.get('port'));
});

ngrok.connect({
  authtoken: 'mytoken ***',
  subdomain: 'mysub',
  port: config.get('port')
}, function(err, url) {
  return console.log('url: ', url, '\nerr: ', err);
});

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Lebedev, 2015-05-30
@slavikse

Paid. :(
I found this line in the docks:
Reserved domains will never be assigned to another user, even if your tunnel is offline. Custom hostnames via CNAME must be reserved for security reasons.
And this button will appear only when you make a paid subscription.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question