
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
serverless-ngrok-tunnel
Advanced tools
Serverless plugin that creates ngrok public tunnel on localhost.
Serverless plugin that creates ngrok public tunnel on localhost.
Optionally, writes tunnels url to .env file and deletes them after session is over. Useful for when you want to expose url for other applications to use (for example mobile application).
Add serverless-ngrok-tunnel to your project:
npm install --save-dev serverless-ngrok-tunnel
Then inside your serverless.yml
file add following entry to the plugins section:
plugins:
- serverless-ngrok-tunnel
First you will need to configure tunnels. In your serverless.yml
file add:
custom:
ngrokTunnel:
envPath: '../.env' # optional. Path to your .env file, relative to serverless.yml file
tunnels: # required
# if you are using `serverless-offline` plugin, expose api gateway
- port: 8000 # required
envProp: 'API_GATEWAY' # optional. property in .env file to assign url value to
# or if you are using `serverless-iot-offline` plugin, expose IoT endpoint
- port: 1884
envProp: 'IOT_ENDPOINT'
ws: true # expose web-socket url
path: '/mqqt' # additional path to url
- port: 9000
ngrokOptions: # optional. custom ngrok options
authtoken: '12345'
region: 'us'
subdomain: 'my-subdomain'
For a list of available ngrok options checkout ngrok documentation.
To start tunnel/s run sls tunnel
.
If you are using serverless-offline
plugin, start offline with option flag: sls offline start --tunnel=true
.
Yes, please. Checkout contributing guidelines.
MIT
FAQs
Serverless plugin that creates ngrok public tunnel on localhost.
We found that serverless-ngrok-tunnel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.