How do I use it from a droplet?
The docs say:
By default, other components in an app can communicate with service components over the app’s LAN using the service’s name as a URL. For example, if your app contains a service named
web
, other components can reach theweb
component athttp://web
.
I don’t know if a droplets count as “other components in an app”, but I tried a curl request from my droplet using the app name (with and without port) and it does not work.
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.
Hey @skeddtemp!
Droplets are not considered components in the App Platform. The internal LAN communication mentioned in the docs only applies to services within the same App Platform app, not external resources like Droplets.
For more information about components you can take a look at this documentation page here:
Since you’ve disabled the public HTTP port and set up an internal port (3044), your app isn’t accessible externally outside the App Platform itself.
If you need to be able to access your App deployed on the App Platform. you’ll need to expose a public port so your Droplet can reach the app. Once it’s exposed, you should be able to use the app’s public URL to access it via a
curl
request from your Droplet.Let me know if this helps or if you need any further clarification! 👍
- Bobby