Pangolin tunnel
Use Pangolin (server) and Newt (client) to expose a local or staging service on the public internet. This is the standard way to handle callbacks, demos, and temporary external access.
Internet -> Pangolin -> Newt -> App
Prerequisites
Section titled “Prerequisites”- Make sure your app is running (for example on
localhost:3000). - Make sure you can access the Pangolin dashboard.
- Use the credentials from Vaultwarden item
pangolin, or ask an admin to create an account for you.
Reserve the subdomain first
Section titled “Reserve the subdomain first”Create the Pangolin resource before starting Newt, so the final URL is known up front.
- In Pangolin, go to
Sitesand select+Add Site. - Enter a site name and select
Newt Tunnel. - Select
Create Site. - Go to
Resourcesand select+Add Resource. - Select
HTTPS resourceand enter your preferred subdomain. - Select
+Add targetand choose the site you created. - Set protocol to
http, host tolocalhost, and port to your app port (for example3000). - Select
Create Resource.
Your tunnel URL is now predictable:
https://<subdomain>.tunnel.d-centralize.nl
Start Newt on the app host
Section titled “Start Newt on the app host”- Open the site you created in Pangolin.
- Copy the Newt install and launch commands shown there.
- Run them on the machine or container where your app runs.
- Keep
newtrunning while the tunnel is in use.
Environment variable mode is also supported:
NEWT_IDNEWT_SECRETPANGOLIN_ENDPOINT
Example:
curl -fsSL https://pangolin.net/get-newt.sh | bashnewtIf used in an entrypoint script, run newt &.
Scripted subdomain reservation
Section titled “Scripted subdomain reservation”For automation, apply a Pangolin blueprint before starting Newt.
newt does not provide a separate reserve-only command.
Example blueprint:
public-resources: app: name: app protocol: http full-domain: my-fixed-subdomain.tunnel.d-centralize.nl targets: - site: my-site hostname: localhost method: http port: 3000Before applying with CLI, make sure Pangolin CLI is installed and authenticated:
pangolin loginpangolin selectApply blueprint:
pangolin apply blueprint --file /path/to/blueprint.yamlOr apply through the Pangolin API endpoint PUT /org/{orgId}/blueprint.
Verify and share
Section titled “Verify and share”- Open the reserved URL in a browser and confirm it reaches your app.
- Share that same URL for callbacks or demos.
- Stop Newt with
Ctrl+Cwhen done.
Authentication for external callbacks
Section titled “Authentication for external callbacks”If an external service must call this endpoint, disable platform SSO on that resource:
- Open
Resourcesin Pangolin. - Open the resource.
- Go to
Authentication. - Disable
Use platform SSO. - Save changes.