a tool help to setup server redirect support expose by localtunnel
$ npm install -g server-redirect
// or yarn
$ yarn global add server-redirect
redirector [options]
options:
-p, --port <port> server port, not required and default is 3000
-u, --url <url> redirect to url, required
-c, --cookie should use cookie, not required, default is false
-e, --expose should expose, not required, default is false
-s, --subdomain <subdomain> subdomain on the expose server, only use when expose is true
Default
redirector -u <url>
Specify a port in local
redirector -u <url> -p 4001
Use cookie
redirector -u <url> -c
Expose server
# Random subdomain
redirector -u <url> -e
# Set subdomain
redirector -u <url> -e -s do-something-great
Full options
redirector -u <url> -p 4001 -c -e -s do-something-great