Skip to main content
Networking is how applications can communicate with other applications or databases. There are two main ways this can be achieved:
  • Public networking: Connections that are accessible from the Internet or external networks. This makes an Internet round-trip, so it can be slower than private networking. With Sevalla’s Application Hosting, you can connect to your application publicly using a specific port or TCP proxy.
  • Private networking: Connections that stay within our network and are not directly accessible from the Internet. We strongly recommend this method if you’re connecting applications hosted on Sevalla or linking an application with a database also hosted on Sevalla. To use Sevalla’s private network, all applications and databases must use the same data center.
Internal connections are only available between applications and databases hosted with Application Hosting and Database Hosting services.
You can configure your application’s public or private port, disable HTTP(S) traffic, or add an internal connection within Applications > app name > Networking.

Public networking

Public networking settings

Public networking settings.

Expose HTTP traffic

Configure a specific port for your application for HTTP traffic, change the protocol, or disable HTTP traffic.

Update protocol

Use this to switch the web process protocol between HTTP and gRPC. gRPC is a protocol that allows browser-based applications to connect with gRPC services over HTTP so different parts of an application, or even different applications, can communicate with each other efficiently over a network.

Update port

By default, the port for your application’s web process is 8080. When an application is deployed, it is reachable on the internet on ports 80 and 443, and we route those ports to the container on the port defined by your application. This port is available during application runtime on the $PORT environment variable. You can define a different port; however, it must be within the range 1-65535 except for the following ports used by our core system: 15000, 15001, 15004, 15006, 15008, 15009, 15020, 15021, 15053, and 15090. To configure a specific port for your application, click Update port, enter the new port, and click Update. 
Update the port for the application web process

Update the port for the application web process.

Disable HTTP(S) traffic

To disable all HTTP(S) traffic for your web process, click Disable > Continue.
Disable HTTP(S) traffic on your web process

Disable HTTP(S) traffic on your web process.

CDN & Edge caching

A content delivery network (CDN) is crucial for modern hosting, and Kinsta provides a premium Cloudflare-powered CDN at no extra cost. Sevalla’s CDN delivers your site’s static assets through a global network spanning 260+ cities across more than 100 countries, ensuring faster content delivery to visitors worldwide. Edge caching takes this a step further by storing your site’s cached pages on Cloudflare’s global network of edge locations. When visitors access your site, cached content is served from the data center nearest to them. This minimizes latency, improves load times, and provides a faster, more consistent experience for users, no matter where they are in the world.

Enable CDN/Edge caching

To enable CDN or edge caching within Sevalla, click Update settings, and then select CDN and/or Edge caching.
Enable the CDN and edge caching on your application

Edit the CDN and edge caching settings for your application.

Clear cache

To clear the CDN or edge cache, within CDN & Edge caching, click Purge cache. If both CDN and edge caching are enabled, purging the cache will apply to both.
Clear the cache for both CDN and edge caching

Clear the cache for both CDN and edge caching.

Clearing edge cache in all of Cloudflare’s data centers may take 2-5 minutes to fully complete.

IP restrictions

IP restrictions allow you to restrict or block access to specific IP addresses or CIDR blocks. If an unauthorized user (IP address) attempts to access the application, they will receive a 403 – Forbidden error. To change your IP restriction settings, click Update IP Restrictions and choose from the following:
  • No IP restrictions: Allows all connections to your application.
  • IP allowlist: Allows connections only from the specified IP addresses. When you select this option, enter the IP addresses or CIDR notations that should have access to your application. To add multiple entries, click the plus icon after each one. There is no limit to the number of entries.
  • IP denylist: Blocks connections from specified IP addresses. When you select this option, enter the IP addresses or CIDR notations you want to block from accessing your application. To add multiple entries, click the plus icon after each one. There is no limit to the number of entries.
To save the changes, click Update IP restrictions.
Update the IP restriction settings for your application

Update the IP restriction settings for your application.

TCP proxy

You can connect up tp three processes over TCP using a proxied domain and port. This allows you to expose non-HTTP traffic, simplifying the deployment of services like MongoDB or RabbitMQ with public access. You can also use it to deploy a Laravel app with Reverb (a WebSocket server) as a single application, with Reverb running as a background worker while still being publicly accessible. To set up a TCP proxy, click Create TCP proxy, choose the Process you want to connect to via TCP proxy, enter the Port you want to use, and click Create TCP proxy.
Choose the process and add a port for the TCP proxy

Choose the process and add a port for the TCP proxy.

Once the TCP proxy is added, a hostname is assigned to the process, which you can use to connect to it.

Private networking

Private networking settings

Private networking settings.

Internal hostnames

This shows the hostname for all of the application processes. You can use the hostname to connect to the processes on Sevalla’s private network.

Connected services

This shows any applications or databases that are connected to the current application over Sevalla’s private network.
Currently, internal connections are only supported between applications in the same region. If you’re deploying an application and a database, you must choose the same region for both.

Add a private connection

You can add a private connection from an application’s Networking page or a database’s Overview page. Wherever you start the process, the result will be the same. To add a connection from an application to another application or database, go to Applications > app name > Networking > in the Connected services section, click Add internal connection, and select the application or database you’d like to create the internal connection to.
Add an internal connection

Add an internal connection from an application or database to an application in Sevalla.

Environment variables

We can automatically populate an application’s environment variables from the connection details. Do not copy and paste the internal connection details into environment variables. Click Add connection or Add application and select the Add environment variables… checkbox. This will automatically populate the environment variables from the application or database you’re connecting to. Some applications may expect environment variables (keys) with different names. You can edit the names in the list before adding the connection or edit them later on the application’s Environment variables page.

Remove a private connection

If you need to remove a connection, go to the Application’s Networking page, and under Connected services, click the ellipsis (three dots) and click Delete.

Private ports

You can expose a port internally to improve communication between applications. This is especially useful in microservice architectures or when running services like RabbitMQ or databases that require internal network accessibility. To expose a port internally, click Expose private port, choose the Process you want to expose the port for, enter the Port, and click Expose port.
Expose a port internally

Expose a port internally.

Sevalla automatically deploys your application when you expose a port.