Openbalena setup behind a caddy proxy.

Hi all,

To start with, just want to say thank you all the hard work regarding the balena suite. Everything here is an absolute dream for distributed systems.

I have been using balena cloud and wanted to try to self host. Following step for step on the article and I keep hitting a wall. Hoping to get some guidance through the forums here.

I have setup my base domain as openbalena.example.com (this is a real domain but just for example purpose I am using “example.com”).

I have an A record for openbalena.example.com → 123.123.123.12
I have a CNAME record for *.openbalena.example.com → openbalena.example.com

These records come through my firewall and into a caddy reverse proxy which has auto SSL capabilities. This might be the issue but I am not sure quite just yet. So this proxy is sending off traffic to my local server (192.168.100.31).

When trying to verify my connection using curl to the api.openbalena.example.com I keep hitting:
curl: (35) error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error

Is there any way to get this to work behind a caddy proxy that already handles the SSL connection? Also, not sure what else I should add in terms of my env so I am keeping it fairly open ended for now until I am asked to include more information as I am not sure what info I should include.

also, here are the tutorials/setups I have followed and tried this far:

Anyone?