Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to add custom domain name (/etc/hosts file) on DigitalOcean App Platform?
Context: We have node app running on DigitalOcean App Platform. This app needs to connect to different hosts via custom domains, thus we need to add entries to
/etc/hosts file or other ways to achieve the same goal.
Issue: we can see
/etc/hosts which is owned by
root. By default, DigitalOcean app platform user is
apps so cannot edit the file.
-rw-r--r-- 1 root root 233 Oct 23 17:33 /etc/hosts
Question: any advice how to add additional custom domain entries to a DigitalOcean App Platform, either to edit
/etc/hosts file or other ways such as settings etc?
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.×