Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40b70db

Browse files
authored
docs: update caddy config example & guide (#13964)
1 parent88d2dbd commit40b70db

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

‎examples/web-server/caddy/Caddyfile

Lines changed: 6 additions & 0 deletions
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_proxylocalhost:3000
39
tls {

‎examples/web-server/caddy/README.md

Lines changed: 7 additions & 6 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp