Coder powers secure, scalable development across key industries — automotive, finance, government, and technology — enabling faster builds, tighter compliance, and seamless AI adoption in enterprise-grade cloud environments.
Throughout the guide, be sure to replace coder.example.com with the domain you intend to use with Coder.
Configure your DNS provider to point your coder.example.com and *.coder.example.com to your server's public IP address.
For example, to use coder.example.com as your subdomain, configure coder.example.com and *.coder.example.com to point to your server's public ip.
This can be done by adding A records in your DNS provider's dashboard.
Install Apache (assuming you're on Debian/Ubuntu):
Install LetsEncrypt Certbot: Refer to the CertBot documentation.
Be sure to pick the wildcard tab and select your DNS provider for instructions to install the necessary DNS plugin.
Create DNS provider credentials
This example assumes you're using CloudFlare as your DNS provider.
For other providers, refer to the CertBot documentation.
Create an API token for the DNS provider you're using, for example, CloudFlare with the following permissions:
Zone - DNS - Edit
Create a file in .secrets/certbot/cloudflare.ini with the following content: