Skip to content

Commit 40b70db

Browse files
authored
docs: update caddy config example & guide (#13964)
1 parent 88d2dbd commit 40b70db

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

examples/web-server/caddy/Caddyfile

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
{
2+
on_demand_tls {
3+
ask http://example.com
4+
}
5+
}
6+
17
coder.example.com, *.coder.example.com {
28
reverse_proxy localhost:3000
39
tls {

examples/web-server/caddy/README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ This is an example configuration of how to use Coder with [caddy](https://caddys
5050
- `coder.example.com`: Domain name you're using for Coder.
5151
- `*.coder.example.com`: Domain name for wildcard apps, commonly used for [dashboard port forwarding](https://coder.com/docs/coder-oss/latest/networking/port-forwarding#dashboard). This is optional and can be removed.
5252
- `localhost:3000`: Address Coder is running on. Modify this if you changed `CODER_HTTP_ADDRESS` in the Coder configuration.
53+
- _DO NOT CHANGE the `ask http://example.com` line! Doing so will result in your certs potentially not being generated._
5354

5455
4. [Configure Coder](https://coder.com/docs/coder-oss/latest/admin/configure) and change the following values:
5556

@@ -111,9 +112,9 @@ For production deployments, we recommend configuring Caddy to generate a wildcar
111112
```diff
112113
tls {
113114
- on_demand
114-
issuer acme {
115-
email email@example.com
116-
}
115+
- issuer acme {
116+
- email email@example.com
117+
- }
117118

118119
+ dns route53 {
119120
+ max_retries 10
@@ -137,9 +138,9 @@ For production deployments, we recommend configuring Caddy to generate a wildcar
137138
```diff
138139
tls {
139140
- on_demand
140-
issuer acme {
141-
email email@example.com
142-
}
141+
- issuer acme {
142+
- email email@example.com
143+
- }
143144

144145
+ dns cloudflare CLOUDFLARE_API_TOKEN
145146
}

0 commit comments

Comments
 (0)