-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathlocaltunnel.node.txt
34 lines (25 loc) · 1.45 KB
/
localtunnel.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
┏━━━━━━━━━━━━━━━━━┓
┃ LOCALTUNNEL ┃
┗━━━━━━━━━━━━━━━━━┛
VERSION ==> #2.0.2
lt #CLI
#Expose localhost to the internet
ENVVARS ==> #Can be used for any option, e.g. ENVVAR LOCAL_HOST for --local-host, --print-requests
--port|-p #NUM
--host|-h #STR (def: 'https://localtunnel.me')
--subdomain|-s #STR. Def: random
--local-host|-l #Use hostname instead of localhost
--open|-o #Open in browser
--print-requests #Verbose
--local-https #BOOL (def: false)
--local-cert #'PATH' to server PEM file
--local-key #'PATH' to server certificate key file
--local-ca #'PATH' to certificate authority file
--allow-invalid-cert #BOOL (def: false)
localtunner(OPTS)->>TUNNEL #Programmatic
#OPTS: same as CLI, but no `open`
TUNNEL.url #'URL'
TUNNEL.on('request', FUNC(OBJ)) #OBJ: method STR, path STR
TUNNEL.on('error', FUNC(ERROR)) #
TUNNEL.close() #
TUNNEL.on('close', FUNC()) #