Connect from the internet
By default, containers, databases, message queues, and other services are not reachable from outside the Nexaa platform. To make external access to your services possible, you can create external connections.
There are multiple types of external connections:
- Ingress
- Connection via a shared IP-address
- Connection via a dedicated IP-address
Ingress
Only applicable to containers, for no extra costs
Ingress is the easiest way to enable external access to a container running on Nexaa. This type of external connection is ideal for web applications or websites which need to be reachable from the internet by (for example) a webbrowser. Only HTTP and HTTPS are supported for ingresses.
-
Create or configure a Container
Go to the container creation or configure screen in the Nexaa portal.
-
Expose the container port
You need to expose a port for container traffic; this should be the port on which the container is listening (e.g.,
5002:5002). -
Enable External Access
Toggle the setting “Make this container accessible from the internet?” to enable.
-
Add an ingress
On the
ingresstab, click onAdd New Ingressand fill in the desired configuration:- Domain name: You can enter your custom domain name (e.g.,
app.example.com) that has the CNAME pointing tonlhaa1-sc1-ingress.tilaa.com. If you leave it empty an autogenerated domain name will be created for you - HTTP port: This will be the port you exposed in the previous step (e.g.,
5002) - Enable TLS (optional): When enabling this all traffic will be redirected to https (secure http) and a certificate will automatically be created (and updated)
- Domain name: You can enter your custom domain name (e.g.,
-
(Optional) Restrict Access by IP
- You can restrict what can access your container by specifying which IP addresses should have access (IP allowlist).
- If left blank, the container will be accessible from anywhere in the world (0.0.0.0/0, ::/0).
-
Click Add
Confirm the configuration and click Add.
-
Save the Container
Make sure to click Update Container to apply the new configuration.
Important
Once saved, your container will become available at the specified domain, from the specified allowlist. Please allow time for DNS changes to propagate — this may take several minutes to a few hours depending on your domain registrar.
Connection via a shared IP
Applicable to containers, databases and message queues, for no extra costs
A connection via a shared IP-address is ideal if your container is running an application which isn't a web application or website (for example, a database), or to allow external connections to your database or message queue.
For external connections over shared IP Nexaa provides an IPv4 and IPv6 address to you which is shared among multiple customers. You receive a random dedicated port number on this shared IP-address which is connected to the port of your database, message queue or container port. This port is dedicated to your service alone and can be used to connect to it. TCP and UDP are supported for shared IP external connections.
External connections for database and message queue clusters always use TCP and utilize the default port of the internal service. For containers you can choose between TCP or UDP (or both), and you need to provide the port number that you configured for your container.
-
Create or Edit a Container, database or message queue
Create a container, database, or message queue. For existing services, in the Nexaa portal go to the
configuretab of the container, or theoverviewtab of the database or message queue. -
Expose the container port (only necessary for containers)
You need to expose a port for container traffic; this should be the port on which the container is listening (e.g.
3306:3306). -
Enable External Connections (only necessary for containers)
- For containers:
- Toggle the setting “Make this container accessible from the internet?” to enable
- Go to the
External Connectionstab - Click on "Enable External Connections"
- For databases and message queues:
- Click on "Enable External Connections".
- For containers:
-
Add an external connection
In the wizzard, configure the external connection.
- Select Shared IP and click Next
- for containers:
- Select the port which you exposed in the previous step (e.g.
3306) - Select the protocol (TCP, UDP or both). In most cases just TCP is enough
- Select the port which you exposed in the previous step (e.g.
- for containers, databases and message queues:
- You can restrict access by specifying allowed IP-adresses in the IP Allow list section (remember to add your IPv6 address as well if you have one)
- If left blank, the container, database or message queue will be accessible from anywhere in the world.
- You get an overview. Click "Enable" to add the external connection
-
Save
Make sure to click Update Container to apply the new configuration to your container. Databases and message queues will save and update automatically.
Important
Once saved, Nexaa will generate a random port number for your external connection. Your service will become available at this port number and the Nexaa shared IP-address. You can find the IP-address and port number in the overview of your container, database or message queue. Here you can also edit the external connection configuration if needed.
Connection via a dedicated IP
Applicable to containers, databases and message queues, for extra costs
A connection via a dedicated IP-address is ideal if your container is running an application which isn't a web application or website (for example, a database), or to allow external connections to your database or message queue, and the external connection requires a specific port number.
For external connections over dedicated IP Nexaa provides an IPv4 and IPv6 address to you which is only available to your services. You can then choose a dedicated port number on this IP-address which will be connected to the port of your database, message queue or container port. TCP and UDP are supported for dedicated IP external connections.
External connections for database and message queue clusters always use TCP and utilize the default port of the internal service. For containers you can choose between TCP or UDP (or both), and you need to provide the port number that you configured for your container.
-
Create or Edit a Container, database or message queue
Create a container, database, or message queue. For existing services, in the Nexaa portal go to the
configuretab of the container, or theoverviewtab of the database or message queue. -
Expose the container port (only necessary for containers)
You need to expose a port for container traffic; this should be the port on which the container is listening (e.g.
3306:3306). -
Enable External Connections (only necessary for containers)
- For containers:
- Toggle the setting “Make this container accessible from the internet?” to enable
- Go to the
External Connectionstab - Click on "Enable External Connections"
- For databases and message queues:
- Click on "Enable External Connections".
- For containers:
-
Add an external connection
In the wizzard, configure the external connection.
- Select Dedicated IP and click Submit request
- For now, you will be requested to fill in a form which will send your request to us. We will configure the connection for you and inform you as soon as its ready.
Important
Currently, the external connection over dedicated IP will not become visible in the Nexaa Portal and will also not be manageable from there. To change the configuration of the external connection, please submit a support ticket. Self-service management of external connections over dedicated IP will be supported in the future.