This script sets up a Code Server instance on your VM using Caddy as a reverse proxy with DNS-01 challenge to verify domain ownership and issue LetsEncrypt SSL certificates.
- Debian 10
- Ubuntu 16.04.7 LTS
- Linux VMs
- Curl installed
- Cloudflare "Full" SSL Setup
- Cloudflare Account with API Token with these permissions:
- Zone / Zone / Read
- Zone / DNS / Edit
-
Setup an A record pointing to you VM's public IP in Cloudflare
-
SSH onto the VM
-
Switch to root user and run the script (either sudo or login as root)
bash <(curl -fsSL https://raw.githubusercontent.com/alec-hs/coder-hetzner-setup/main/setup.sh)
-
Access your Coder instance at your domain
Add more info here