Skip to main content

Configure public access for your application

Public access through zerops.io subdomain

By default, your runtime service is not publicly accessible. To test your application, you can enable public access through zerops.io subdomain. Go to the service detail page in Zerops GUI and select Public access & internal ports in the left menu. Then toggle the Zerops subdomain access switch. Zerops will assign the unique zerops.io subdomain for your application. If you have configured more [internal ports] with http support, Zerops will create the unique zerops.io subdomain for each port.

// TODO screenshot (block with enabled zerops.io access)

Use the https:// protocol to access your application through zerops.io subdomain, Zerops manages the SSL certificate for you. A central Zerops https balancer is used to terminate the SSL connection. The traffic is then redirected to your application on the http:// protocol.

Do not use the Zerops.io subdomain for production. The traffic is limited by the central https balancer that is shared with other Zerops projects and will always create a bottleneck that prevents your application to scale. The maximum upload limit for Zerops.io subdomain is 20 MB.

Public access through your domain

By default, your runtime service is not publicly accessible. When your application is ready for production or if you want to test it on the production domain, configure the public access through your domain.

Go to the service detail page in Zerops GUI and select Public access & internal ports in the left menu. Click on the Setup first domain access button.

// TODO screenshot (Add new public access through domains)

Public IPv4 address

To access your runtime service through your domain you will need a public IPv4 address. The public IPv4 address is dedicated for your project and costs $4 for each 30 days. To enable the public IPv4 address click on the activate button. Once the public IPv4 address is active, you can configure the public access through your domain for your runtime application. If you have multiple runtime applications in the same project, they will share the same public IPv4 address. You can't purchase more than one public IPv4 address for your project.

You cannot purchase the public IPv4 for your promo credit. [Top up your credit] to purchase your first IPv4 address.

The public IPv4 subscription is automatically renewed after 30 days and the $4 fee is deducted from your credit on the renewal date. If you delete the project with an active public IPv4, the fee for the public IPv4 is not refunded but you can use the same IPv4 for another project for free until the end of the subscription.

Public IPv6 address

Zerops assigns one dedicated public IPv6 address to each project. The public IPv6 address is free of charge. The public IPv6 address is active when you enable a public domain access for your first runtime service. You cannot add multiple public IPv6 addresses to your project.

If you are sure that your users have the IPv6 connection to the internet, you can use only the public IPv6 address to access your application through your domain.

Configure public http routing

// TODO screenshot (Part of the modal with the http routing)

To configure the public http routing go to the service detail page in Zerops GUI and select Public access & internal ports in the left menu. Click on the Setup first domain access button.

Follow these steps:

  1. Enter your domain name e.g. mydomain.com to the domains input. You can enter a subdomain e.g. app.mydomain.com, the level of your subdomain is not limited. If you have multiple domains and you want to set the identical routing for them, for example if you have multiple domains for different languages, add them to the input.
  2. If you don't want Zerops to install and maintain the Let's Encrypt SSL certificate for your domain(s), disable the Automatically install SSL certificates switch. The SSL certificate installed by Zerops is free of charge.
  3. Add one or more routing configurations. Each routing configuration has 2 settings: The source in the form of a public path (the part of the URL after your domain(s)) and the destination where you choose to which application and port you want to redirect the incoming traffic from the defined source.

You can change these settings any time.

How to configure your domain DNS

Your domain DNS settings cannot be changed in Zerops GUI. Go to your domain registrar and configure following DNS records:

  • Point the A record to your project public IPv4 address.
  • Point the AAAA record to your project public IPv6 address.

After the TTL of your domain's DNS expires, your application in Zerops will be accessible through your domain.

HTTPS

If you have enabled the Let's Encrypt certificate for your domain(s), use the https:// protocol to access your application through your domain. Zerops instals and renews the SSL certificate for you. A dedicated https balancer is installed to your project and Zerops redirect all the traffic that is coming through your project's public IPv4 and IPv6 address to the https balancer.

The https balancer redirects the traffic to the specific service and its port based on the public http routing configuration. The SSL certificate is installed in the https balancer and it's where the https:// connection is terminated. The traffic is then redirected to your service on the http:// protocol.

Thanks to this solution, the SSL certificate is separated from your application environment and all the internal traffic in your project private network uses the http:// protocol.

You cannot install your own SSL certificate or otherwise modify the project https balancer rules directly.

The project https balancer is always installed in 2 containers to ensure the redundancy. Zerops scales both https balancer containers vertically based on the current traffic.

The project https balancer is free of charge.