{% if patch("drydock-edge-proxy-caddyfile") -%}
{{ patch("drydock-edge-proxy-caddyfile") }}
{%- else -%}
:80 {
    handle {
        header {
            Content-Type "text/html; charset=utf-8"
            Retry-After "3600"
            Cache-Control "no-store"
        }
        respond 503 {
            body <<HTML
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Under Maintenance</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <style>
    html, body {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    body {
        background: #FFCC00;
        color: #222222;
        font-family: 'sans-serif';
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    article {
        display: block;
        width: 100%;
        max-width: 700px;
        padding: 40px 20px;
        margin: 0 auto;
    }
    h1 {
        font-size: 50px;
        font-weight: bold;
        margin-bottom: 20px;
    }
    p {
        font-size: 22px;
        font-weight: 400;
        line-height: 1.5;
        margin: 0;
    }
    svg {
        width: 150px;
        height: auto;
        margin-bottom: 1em;
    }
        </style>
    </head>
    <body>
        <article>
            <svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 603">
                <g transform="translate(750 0) scale(-1.1 1)">
                <path fill="#222" fill-rule="evenodd" d="M46.019,601.088 7.048,533.588 301.529,23.532 379.471,23.532 673.952,533.588 634.981,601.088M72,541.088 340.5,76.032 609,541.088" />
                <circle cx="340.5" cy="46.032" r="45" fill="#222" stroke="none" id="circle4" />
                <circle cx="634.981" cy="556.088" r="45" fill="#222" stroke="none" id="circle6" />
                <circle cx="46.019" cy="556.088" r="45" fill="#222" stroke="none" id="circle8" />
                <path d="m 261.09133,425.41881 c 0,0 -3.0702,-7.24731 -10.77652,-9.45694 -7.90646,-2.18126 -14.43396,-1.11417 -20.89328,-13.4157 l -5.71816,-9.45694 c 0,0 -1.29758,-3.45794 -7.25766,-4.61851 -5.74915,-1.27912 -13.55489,-3.47423 -16.71462,-3.29895 -4.3084,0.39852 -7.70874,-0.74996 -13.41566,5.9381 C 181.91244,396.21728 110,521.088 110,521.088 h 172.86433 c 0,0 4.42717,-0.46296 3.29893,-4.39859 -1.31079,-3.87119 -22.21286,-78.07484 -22.21286,-78.07484 l 23.97229,-15.17512 c 0,0 2.01236,3.22945 9.01708,0 6.98057,-3.27584 9.45698,-4.83844 9.45698,-4.83844 0,0 4.04227,-0.44337 3.51885,-8.79717 2.76892,-1.81881 28.37086,-18.03418 28.37086,-18.03418 0,0 -8.95552,22.49896 -9.67688,32.32957 -0.90391,10.00943 -4.3986,76.75528 -4.3986,76.75528 0,0 0.4047,4.9715 -3.07899,5.93809 -3.34731,0.98461 -18.69397,5.27829 -18.69397,5.27829 0,0 -4.49316,0.74733 -4.39859,4.17866 -0.0945,3.39945 1.53071,4.7001 3.51886,4.61851 1.91559,0.0816 50.58371,0 50.58371,0 0,0 4.99679,0.73193 5.71815,-5.71815 0.90612,-6.55917 10.11675,-73.01649 10.11675,-73.01649 0,0 -4.00712,-1.03168 -3.95872,-5.05836 -0.0483,-4.10477 -0.0483,-7.19411 1.31958,-8.79717 1.2338,-1.64947 15.85028,-18.57103 25.95163,-42.22639 1.46472,-3.3315 2.60397,-0.24237 2.85907,0.65978 0.39368,0.72423 19.42195,52.60178 21.77299,54.54244 2.20149,1.9622 53.59234,43.59413 54.76235,44.42568 1.10626,0.79462 4.35901,3.07131 4.39859,10.33667 -0.0396,7.37026 -2.96904,13.22501 -4.83842,15.39504 -2.03215,2.38315 -5.2849,5.63569 -5.27831,7.03774 -0.007,1.52498 1.45813,2.5008 2.63914,2.41921 1.09525,0.0816 7.76131,0.0816 8.35731,0 0.70597,0.0816 9.48775,0.73193 15.61497,-9.89681 6.2328,-10.83744 17.59435,-30.13029 17.59435,-30.13029 0,0 2.461,-3.63653 -1.09966,-5.93809 -3.59584,-2.25251 -9.28761,-3.55317 -12.75589,-7.03773 -3.36052,-3.67084 -36.21134,-41.56221 -36.72816,-42.2264 -0.45967,-0.63669 -4.6867,-5.19076 -10.11675,-2.85908 -1.56368,-2.00596 -3.51887,-4.83843 -3.51887,-4.83843 0,0 -9.26342,-56.77692 -19.13384,-80.71401 2.2257,-1.50651 5.05838,-3.73878 5.05838,-3.73878 0,0 8.0626,6.787 14.73525,-0.43987 6.66165,-7.08392 6.17341,-6.92117 5.05837,-10.11674 -1.16123,-3.30993 -1.64946,-4.28642 -3.95872,-5.49823 -2.24328,-1.38995 -5.98428,-5.13095 -5.93809,-11.65624 -0.0462,-6.48352 -2.81069,-24.20982 -5.93809,-31.6698 -3.05041,-7.50178 -4.02689,-15.79531 -15.83489,-20.89327 -18.19254,-8.23634 -42.83341,-13.11658 -60.92038,-8.3573 -4.82305,1.22721 -20.78111,12.96701 -22.21285,13.85554 -1.49552,0.73895 -7.7481,3.33412 -7.25766,-2.19931 1.31297,-12.24125 -9.33379,-33.97904 -28.37086,-33.86908 -23.16293,-0.11001 -26.6884,22.26564 -26.61142,24.85199 -0.077,11.71562 8.3793,26.42889 31.88972,28.59079 0,0 4.78785,0.76536 4.83845,3.73879 -0.0506,2.88107 -0.0506,1.90459 -1.53951,3.51887 -1.43834,1.63846 -13.69719,13.0352 -13.85555,16.05482 -1.40753,14.20524 1.76386,32.62209 4.61852,43.10612 0,0 3.56946,8.99072 0.87973,15.39505 -2.8393,6.27897 -14.87383,36.52803 -15.83491,38.26767 -2.89646,5.33415 -4.0137,9.64499 -2.19929,15.83491" style="fill:#222222;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.219929" id="path16" sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" />
                </g>
            </svg>
            <h1>Under maintenance</h1>
            <div>
                <p>
                    The site is undergoing scheduled maintenance.
                    <br>
                    Please come back later.
                </p>
            </div>
        </article>
    </body>
</html>
HTML
        }
    }
}
{%- endif %}
