Skip to content

Commit 1daa392

Browse files
author
Exploding Labs Bot
committed
Update site from docs source repo
1 parent 2eee4f3 commit 1daa392

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

superstack/deploying/index.html

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -757,14 +757,10 @@ <h3 id="3-front-proxy">3. Front Proxy</h3>
757757
<p>The front proxy is a single Caddy container that binds <code>:80</code> and <code>:443</code> on the
758758
server and routes requests into either the Blue or Green stack.</p>
759759
<p>On the server, create a simple <code>Caddyfile</code>:</p>
760-
<div class="highlight"><span class="filename">Caddyfile</span><pre><span></span><code>api.myapp.com {
761-
reverse_proxy blue_caddy:80
762-
}
760+
<div class="highlight"><span class="filename">Caddyfile</span><pre><span></span><code>api.myapp.com reverse_proxy blue_caddy:80
763761

764762
# Optionally point a second hostname to the idle stack for testing
765-
next.myapp.com {
766-
reverse_proxy blue_caddy:80
767-
}
763+
next.myapp.com reverse_proxy blue_caddy:80
768764
</code></pre></div>
769765
<p>The front proxy manages TLS, so give it a persistent volume for certificates:</p>
770766
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span>volume<span class="w"> </span>create<span class="w"> </span>caddy_data
@@ -785,13 +781,8 @@ <h3 id="4-deploying">4. Deploying</h3>
785781
docker<span class="w"> </span>compose<span class="w"> </span>-p<span class="w"> </span>green<span class="w"> </span>up<span class="w"> </span>-d
786782
</code></pre></div>
787783
<p>Edit the front proxy's config to flip traffic:</p>
788-
<div class="highlight"><span class="filename">Caddyfile</span><pre><span></span><code>api.myapp.com {
789-
reverse_proxy green_caddy:80
790-
}
791-
792-
next.myapp.com {
793-
reverse_proxy blue_caddy:80
794-
}
784+
<div class="highlight"><span class="filename">Caddyfile</span><pre><span></span><code>api.myapp.com reverse_proxy green_caddy:80
785+
next.myapp.com reverse_proxy blue_caddy:80
795786
</code></pre></div>
796787
<p>Restart Caddy:</p>
797788
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>front-proxy<span class="w"> </span>caddy<span class="w"> </span>reload

0 commit comments

Comments
 (0)