3 ms·
But it turns out no server I have seen is as simple as "apt install server". You always have to paste in 100 lines of boilerplate into some hidden config file.
by londons_explore 6y ago
But it turns out no server I have seen is as simple as "apt install server".
You always have to paste in 100 lines of boilerplate into some hidden config file.
- francislavoie 6y agoLike 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.