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.
Click below to sign up and get $100 of credit to try our products over 60 days!