2 ms·
Like I replied in a sibling thread, Caddy can do exactly this. A few lines to install the debian repo (with systemd service): https://caddyserver.com/docs/inst
by francislavoie 6y ago
Like I replied in a sibling thread, Caddy can do exactly this.
A few lines to install the debian repo (with systemd service): https://caddyserver.com/docs/install#debian-ubuntu-raspbian https://caddyserver.com/docs/install#debian-ubuntu-raspbian
Then your /etc/caddy/Caddyfile just looks like this (assuming you have an app listening on port 8080 that you want to proxy to):
example.com
reverse_proxy localhost:8080
Yer done. Automatic HTTPS for "example.com", all you need to do is point your DNS to your server, make sure ports 80 and 443 are accessible, and Caddy does the rest.