Static IP guide
Making API requests with a static IP from a Node app on Sevalla
Sevalla's own docs are upfront that its default Google Cloud data centers hand out outbound traffic from Google's published IP ranges, not a fixed address, so an API partner that allowlists by IP has nothing stable to point at. Add your Fixie proxy URL as FIXIE_URL in the app's environment variables panel and axios routes every call from two addresses that stay the same regardless of which data center Sevalla runs your app in.
Recommended setup
Use Fixie HTTP/S proxy for HTTP and HTTPS requests to an API, webhook provider, or service that allowlists outbound IP addresses. Store the proxy value in FIXIE_URL, then configure Node.js to route outbound traffic through Fixie before connecting to API allowlisting.
Set up Fixie on Sevalla
Create a Fixie HTTP/S proxy in the Fixie dashboard. Copy the proxy value into Sevalla environment variables as FIXIE_URL, and copy the outbound IPs into the destination allowlist.
Implementation
The example below shows the core application-side change. Keep credentials in environment variables and avoid committing proxy, database, or API secrets.
Make an HTTP request through FIXIE_URL
Good to know
- Sevalla builds Node apps with Nixpacks by default, so no Dockerfile changes are needed, just the environment variable.
- Setting it from the CLI looks like
sevalla apps env-vars create <app-id> --key FIXIE_URL --value "<proxy-url>", which keeps the value out of the repo.
Allowlist and test the static IPs
- Open the Fixie dashboard and copy the outbound IP addresses for this proxy.
- Add both IPs to the API provider.
- Deploy the updated Node.js app on Sevalla.
- Run a small connection test before sending production traffic.
Related guides
- Making API requests with a static IP from a Node app on Heroku
- Making API requests with a static IP from a Node app on Vercel
- Making API requests with a static IP from a Node app on Render
- Making API requests with a static IP from a Node app on Fly.io
- Making API requests with a static IP from a Node app on Koyeb
- Making API requests with a static IP from a Node app on AWS Lambda
Related docs
Is this guide useful?