File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,10 @@ server and routes requests into either the Blue or Green stack.
124124On the server, create a simple `Caddyfile` :
125125
126126` ` ` caddyfile title="Caddyfile"
127- api.myapp.com {
128- reverse_proxy blue_caddy:80
129- }
127+ api.myapp.com reverse_proxy blue_caddy:80
130128
131129# Optionally point a second hostname to the idle stack for testing
132- next.myapp.com {
133- reverse_proxy blue_caddy:80
134- }
130+ next.myapp.com reverse_proxy blue_caddy:80
135131` ` `
136132
137133The front proxy manages TLS, so give it a persistent volume for certificates :
@@ -165,13 +161,8 @@ docker compose -p green up -d
165161Edit the front proxy's config to flip traffic :
166162
167163` ` ` caddyfile title="Caddyfile"
168- api.myapp.com {
169- reverse_proxy green_caddy:80
170- }
171-
172- next.myapp.com {
173- reverse_proxy blue_caddy:80
174- }
164+ api.myapp.com reverse_proxy green_caddy:80
165+ next.myapp.com reverse_proxy blue_caddy:80
175166` ` `
176167
177168Restart Caddy :
You can’t perform that action at this time.
0 commit comments