caddy webserver


 

Steve_M

TVWBB Guru
The caddy server caught my eye, so I thought I'd give it a try as a https proxy to my heatermeter.

Features:

Simple configuration
Automatically generated HTTPS certs
Multi OS support ( Windows, Mac, Linux, FreeBSD )
Written in GO

So, now onto the config. I told you it was simple!

$cat Caddyfile
Code:
bbq.converged.ca {
proxy / 192.168.1.178:80
}

bbq.ww0.ca {
proxy / 192.168.1.88:80
}

That's it! 192.168.1.178 and 192.168.1.88 are the IP's of my heatermeters.

When caddy starts, it will auto-generate HTTPS certs for both bbq.converged.ca and bbq.ww0.ca via Let's Encrypt and it will also renew the certs as needed.

You can hit http://bbq.converged.ca/ to see it working. You'll notice that it auto redirects you to the secure https page, which is also nice.

Edit: I just noticed that the stream URL isn't updating every few seconds as it should be, when proxied through caddy. For some reason it's only loading every 20-30 seconds.
 
Last edited:

 

Back
Top