docs: add Caddy+LetsEncrypt TLS example (#4585)

* structure

* docs: add Caddy+LetsEncrypt TLS example
This commit is contained in:
Ben Potter
2022-10-19 07:20:11 -05:00
committed by GitHub
parent 0727c98313
commit 12cb4f1eb3
4 changed files with 199 additions and 0 deletions
+6
View File
@@ -23,6 +23,12 @@ subdomain that resolves to Coder (e.g. `*.coder.example.com`).
> If you are providing TLS certificates directly to the Coder server, you must use a single certificate for the
> root and wildcard domains. Multi-certificate support [is planned](https://github.com/coder/coder/pull/4150).
## TLS Certificates
The Coder server can directly use TLS certificates with `CODER_TLS_ENABLE` and accompanying configuration flags. However, Coder can also run behind a reverse-proxy to terminate TLS certificates from LetsEncrypt, for example.
- Example: [Run Coder with Caddy and LetsEncrypt](https://github.com/coder/coder/tree/main/examples/web-server/caddy)
## PostgreSQL Database
Coder uses a PostgreSQL database to store users, workspace metadata, and other deployment information.