svrx-plugin-localtunnel
svrx plugin for localtunnel
This plugin is used to expose your local server to localtunnel.me
Usage
please confirm you have installed svrx already
Via CLI
svrx -p "localtunnel"
Via API
const svrx = ; start;
With options
With events
const server = ;server;serverstart;
Example above will prepare https://svrx.localtunnel.me for you
Options
subdomain [String]:
A string value requesting a specific subdomain on the proxy server
Subdomain is optional, localtunnel will auto create a random domain for you.
localhost [String]:
Proxy to this hostname instead of localhost
localhost is optional
host [String]:
specify host if you want to use custom localtunnel/server , or Deploy localtunnel server with docker-compose
Deafult is https://localtunnel.me
Events
localtunnel:ready
Emitted when localtunnel is ready.
params:
tunnel [Object]
: localtunnel instance, see localtunnel API
localtunnel:error
Emitted when an error occurred.
params:
message [String]
: error message