Socket forwarding on digitalocean apps

Posted November 29, 2021 117 views
DockerDigitalOcean App Platform

I have a cardano-node setup using the dockerfile option in digitalocean apps.

The cardano node doesn’t expose an HTTP endpoint so my only method of communicating with the node at this time is to forward sockets.

Is it at all possible to do this with apps platform?

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.

Submit an Answer
1 answer

Hey there!

In App Platform only HTTPS on port 443 is supported for inbound communication so it would be necessary to proxy that to your app. Socket forwarding wouldn’t work but you could setup nginx as a reverse proxy in your Dockerfile or possibly look at using websockets if it meets your needs. Ogmios

Hope it helps!

  • Thank you for the response. I know about ogmios but found out about it a lot later than I’d like. The app is built and it about to go into beta. I’ll go with a docker startup script for now and switch over to ogmios down the road. Thanks!