This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Migrating
Quentin McGaw edited this page May 23, 2020
·
2 revisions
You need to migrate your Caddyfile.
Because Caddy v2.0.0 uses a different auto https mechanism, you can safely remove/archive your previous data
directory from v1.0.x Docker containers.
The following are just general points I had to migrate from my own Caddyfile, more information is available on caddyserver.com/docs/v2-upgrade.
➡️ caddyserver.com/docs/v2-upgrade#proxy
-
Replace all
proxy
byreverse_proxy
-
Remove all
transparent
directives as it's enabled by default now -
Remove all
websocket
directives as it's enabled by default now -
Remove all
without ...
directives, for example replace:proxy /abc thathost:8080 { without /abc }
with:
route /abc/* { uri strip_prefix /abc reverse_proxy thathost:8080 }
Rewrite syntax has changed: ➡️ caddyserver.com/docs/v2-upgrade#rewrite