Skip to content

Commit

Permalink
Fix: Caddyfile syntax broken in 2.7.4
Browse files Browse the repository at this point in the history
The syntax of the Caddyfile documented in the quick install guides is broken in Caddy 2.7.4.

This removes the unused `on_demand` section from the configuration, restoring compatibility with newer versions of Caddy.

We maintain the `on_demand_tls` section in case we may re-enable wildcard domains on the default config.
  • Loading branch information
hoh committed Sep 18, 2023
1 parent 57b0918 commit f5c315c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions doc/INSTALL-Debian-11.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ cat >/etc/caddy/Caddyfile <<EOL
}
}
vm.example.org:443 {
tls {
on_demand
}
reverse_proxy http://127.0.0.1:4020 {
# Forward Host header to the backend
header_up Host {host}
Expand Down
3 changes: 0 additions & 3 deletions doc/INSTALL-Debian-12.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ cat >/etc/caddy/Caddyfile <<EOL
}
}
vm.example.org:443 {
tls {
on_demand
}
reverse_proxy http://127.0.0.1:4020 {
# Forward Host header to the backend
header_up Host {host}
Expand Down
3 changes: 0 additions & 3 deletions doc/INSTALL-Ubuntu-22.04.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ sudo cat >/etc/caddy/Caddyfile <<EOL
}
}
vm.example.org:443 {
tls {
on_demand
}
reverse_proxy http://127.0.0.1:4020 {
# Forward Host header to the backend
header_up Host {host}
Expand Down

0 comments on commit f5c315c

Please sign in to comment.