URL / Port
Domain
Arkain provides a default subdomain (e.g., https://mydomain.arkain.site) for every container. This means you don't need to purchase your own domain to get started.
Running your application
Run your application by clicking the [Run] button or through the terminal. Verify if the application is running successfully through the terminal panel, and note the port number where the application is running.
The application's port number is necessary for registering a domain.
Registering a subdomain
Click on the [Preview] → [Running URL and Port] button in the menu bar of the Workspace to open the sub domain settings popup. Here, you can register a new subdomain and view the list of registered sub domains.
To register a new subdomain, enter the URL and port number you want in the input field, and click the [Register] button. Note that for some base templates, subdomains for default ports may already be registered.
You cannot register multiple domains with the same port number.
Registering a Custom domain
You can register your own domain instead of the subdomains provided by Arkain such as mydomain.run.arkain.site. You can configure a custom domain from the Arkain Dashboard page. Go to [Container Settings]](
) → URL/Port section, click the [+ Add] button, and select [Custom Domain].
And enter the domain to register starting from www, and upload the crt and key files. If the certificate has a password, include the password in a file and upload it.
Setting up DNS Domain
On your domain registrar's website, you must create a CNAME record that points to the Arkain server for your container's region.
Seoul:
${your_domain}.ap-northeast-2.arkain.siteOregon:
${your_domain}.us-west-2.arkain.siteFrankfurt:
${your_domain}.eu-central-1.arkain.siteMumbai:
${your_domain}.ap-south-1.arkain.site
Accessing the Domain through browser
Open your web browser and enter the registered domain to access it. You should see your application displayed. If Hot Module Replacement (HMR) is applied in your code, your code changes will be reflected in the browser in real-time without browser refresh.
If you encounter a 404 error page, double-check that you entered the domain correctly in the browser.
If you encounter a Connection Refused page, check that the application is running correctly and ensure that the port number you entered during domain registration is correct.
If your server's hosting setting is localhost or 127.0.0.1, try changing it to 0.0.0.0 .
It allows external access.
Last updated