For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to create a subdomain?

Learn how to register and manage custom Discloud subdomains for your applications.

🌐 What is a Discloud Subdomain?

On Discloud, any app that uses a port and requires external access through it to be accessed is considered a site. This includes bots with dashboards, dashboards, APIs, static and dynamic sites, and many others…

To allow external access to your app, Discloud offers the option to create a custom subdomain. This subdomain redirects traffic through the Discloud proxy to port 8080 of your app, allowing you and users to access your site securely and reliably.

📡 How it Works

Discloud subdomain flow

.discloud.app or .discloud.dev?

Your subdomain ends up on .discloud.app or on .discloud.dev. You don't choose which: Discloud chooses the domain automatically when the subdomain is created, depending on the demand on each domain. In discloud.config, you always use only the subdomain name.


✅ Requirements

To register and use a Discloud subdomain, you must meet the following requirements:


🚀 Register Your Subdomain

2

Click the Domains tab in the side menu of your account page.

Dashboard Subdomain tab
3

Click the + Create subdomain button to create a new subdomain.

Add Subdomain button
4

Enter your desired subdomain name (e.g., myapp, dashboard, api).

Subdomain naming rules

  • Between 2 and 20 characters

  • Only lowercase letters (a–z), numbers (0–9), and hyphens (-)

  • No spaces, underscores, or special characters allowed

5

Your subdomain is now registered and its state will show as Free.


📝 Configure Your discloud.config

Once your subdomain is registered, you must add it to your discloud.config file so Discloud routes traffic to the correct app.

Open your discloud.config file and locate the ID field:

How to specify the subdomain in the discloud.config file?

After updating discloud.config, deploy your application for the changes to take effect.

How To Host

🔄 Subdomain States

Your registered subdomain can have two states:

🔵 In use

  • The subdomain is registered and in use.

  • An app is currently deployed and accessible at https://yoursubdomain.discloud.app or https://yoursubdomain.discloud.dev, depending on the domain chosen when the subdomain was created.

  • Traffic is being routed to your app on port 8080.

🟢 Free

  • The subdomain is registered and available.

  • No app is currently using it.

  • You can deploy an app to activate it at any time.


🌍 Access Your Site

Once your subdomain is In use, you can access it at one of these addresses, depending on the domain chosen when the subdomain was created:


⚙️ Custom Domain

If you want to use your own domain (e.g., yourdomain.com) instead of a Discloud subdomain, check:

Custom Domain

Last updated