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.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
Open the Discloud Dashboard.
Click the Domains tab in the side menu of your account page.

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

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:
After updating discloud.config, deploy your application for the changes to take effect.
🔄 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.apporhttps://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:
Last updated