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

✅ Requirements
To register and use a Discloud subdomain, you must meet the following requirements:
Platinum Plan or Higher is required to host websites or APIs.
Port 8080 – Your application must listen on port 8080 for external traffic
Discloud Config – Your app must include a properly configured discloud.config file
🚀 Register Your Subdomain
Open the Discloud Dashboard.
Click on the Subdomain tab at the top of the application page.

Click the + Subdomain button to create a new subdomain.

Your subdomain is now registered and its state will show as Available.
📝 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:
ID=yoursubdomainHow to specify the subdomain in the discloud.config file?
discloud.config file?Use only the subdomain name, not the full domain (e.g., use myapp, not myapp.discloud.app).
Example:
ID=myapp
TYPE=site
After updating discloud.config, deploy your application for the changes to take effect.
🔄 Subdomain States
Your registered subdomain can have two states:
🔵 Active
The subdomain is registered and in use.
An app is currently deployed and accessible at
https://yoursubdomain.discloud.app.Traffic is being routed to your app on port 8080.
🟢 Available
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 Active, you can access it via:
https://yoursubdomain.discloud.app⚙️ Custom Domain
If you want to use your own domain (e.g., yourdomaind.com) instead of a Discloud subdomain, check:
Last updated