all repos — homestead @ 12dcea302369101dccc9319fbe81658c5ad10d6c

Code for my website

Enable Caddyfile to validate without redis Validation tries to connect to the redis server by the `storage` global option, which is not possible without secrets that are not exposed during the build

Alan Pearce
commit

12dcea302369101dccc9319fbe81658c5ad10d6c

parent

962a7c8cbdcd486dd5ec4cdc197a72f82d3831af

4 files changed, 9 insertions(+), 2 deletions(-)

jump to
M .dockerignore.dockerignore
@@ -1,3 +1,4 @@
* !Caddyfile +!redis.Caddyfile !public
M CaddyfileCaddyfile
@@ -3,8 +3,7 @@ admin off
persist_config off auto_https disable_redirects acme_ca https://acme.zerossl.com/v2/DV90 - storage redis { - } + import globals/* servers :80 { metrics protocols h1 h2c
M DockerfileDockerfile
@@ -16,4 +16,9 @@
EXPOSE 9091/tcp ENV SITE_ROOT=/srv + +RUN mkdir /etc/caddy/globals/ +RUN touch /etc/caddy/globals/dummy RUN ["/usr/bin/caddy", "validate", "--config", "/etc/caddy/Caddyfile"] + +COPY redis.Caddyfile /etc/caddy/globals/redis
A redis.Caddyfile
@@ -0,0 +1,2 @@
+storage redis { +}