3 ms·
ACME HTTP challenges (Let's Encrypt, for example) literally do this. Your web server gets a challenge from the issuer, serves a special page with the response t
by jsjsbdkj 6y ago
ACME HTTP challenges (Let's Encrypt, for example) literally do this. Your web server gets a challenge from the issuer, serves a special page with the response to validate that you own the domain, and the issuer gives you a cert for that domain.
- londons_explore 6y agoBut 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.