I have my app & local machine in the trusted sources of the database. I can connect to the database from my local machine but unable to connect to it from the app platform.
Is this something not supported or am I missing something?
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.
Any updates here ? We need this feature urgently and there is no new information since March 9,2022.
Hello, unfortunately using Trusted Sources with App Platform and PostgreSQL connection pools is not supported, however, we are actively working to support that functionality.
Hello, Thanks for using DigitalOcean App Platform. PostgreSQL connection pools are now supported in App Platform using trusted sources.
For example if you connect your DigitalOcean database to an App Platform app as “mydb” component, and that database has a connection pool “mypool”, you can use bindable variables to automatically integrate it into your app as a trusted connection. An example environment variable would be:
See the documentation.
Hope this helps.