leafac / kill-the-newsletter

Convert email newsletters into Atom feeds
https://kill-the-newsletter.com
MIT License
2.4k stars 115 forks source link

Can't deploy to DigitalOcean App platform #37

Closed jgannondo closed 3 years ago

jgannondo commented 3 years ago

Hi team - I'm a DigitalOcean employee trying to deploy this app via the DigitalOcean App Platform.

The app seems to build and load, but when I visit the app URL (https://kill-the-newsletter-com-42ke7.ondigitalocean.app/) I get this error:

upstream connect error or disconnect/reset before headers. reset reason: connection termination

Any idea what I may need to do or change to get around this? Thanks much!

leafac commented 3 years ago

Not right off the bat, but we can figure it out together. It seems like the application itself is running fine; it’s some intermediary that’s causing issues. So we’ll move them out of the way for a moment to figure out what’s going on.

From Kill the Newsletter!’s side there’s only one intermediary: Caddy (it’s there to handle TLS/HTTPS). We can move it out of the way for a moment by allowing port 8000 (or whatever other port you configured) on the firewall. Then try to visit http://kill-the-newsletter-com-42ke7.ondigitalocean.app:8000 (note the http and the :8000).

If that doesn’t work, then there may be more intermediaries in the infrastructure you’re using. Judging by the HTTP headers you’re using Cloudflare. You may try to turn that off and see how it goes.

Let me know if you got it work. Good luck.

leafac commented 3 years ago

Any news?

leafac commented 3 years ago

We’ll close this for now. If you still need help, let me know.