I created two simple Python apps from the docs.
I try this https://github.com/digitalocean/sample-flask And even more simple solution - https://github.com/digitalocean/sample-python
And when I try to reach them through generated domain like this - example.ondigitalocean.app/ everything working fine.
But when I try to add domain - https://example.com I get ERR_CONNECTION_CLOSED.
The main problem is that there is no information in https://docs.digitalocean.com/products/networking/dns/how-to/add-domains what I need to change, or add.
Should it run out of the box with custom https domain?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hey @donprusne,
I’ll recommend checking the following article:
https://docs.digitalocean.com/products/app-platform/how-to/manage-domains/#:~:text=Go to https%3A%2F%2Fcloud,Name%2C then click to proceed.
Add a Custom Domain Using the Control Panel
Go to https://cloud.digitalocean.com/apps, click on your app, and click on the Settings tab. Then, click the Edit link to the right of Domains, and the Add Domain button.
On the Add Domain form, enter your custom domain name at the top of the form in the text area under Domain or Subdomain Name, then click to proceed.
You are given a choice to delegate your DNS management to DigitalOcean or to point to your app by adding a CNAME record to your domain configuration.
If you decide to use DigitalOcean’s nameservers, copy and paste DigitalOcean’s nameservers (
ns1.digitalocean.com
,ns2.digitalocean.com
,ns3.digitalocean.com
) to your domain’s registrar nameserver records. See our Community tutorial on how to delegate your domain to DigitalOcean’s nameservers from popular registrars.DNS changes can take up to 72 hours to propagate across the internet. You can check the progress of the transfer in App Platform’s dashboard.