Skip to content

Commit 374598c

Browse files
committed
Update Caddy, enable logging, & validate Caddyfile on build
1 parent 7f27e3f commit 374598c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Caddyfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{$DOMAIN:http://localhost} {
2+
log
3+
24
encode zstd gzip
35

46
header *.wasm Content-Type "application/wasm"

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM caddy:2.6.1-alpine
1+
FROM caddy:2.9.1-alpine
22

33
RUN mkdir /site
44

55
WORKDIR /site
66

77
COPY ./dist /site
8-
COPY ./Caddyfile /etc/caddy/Caddyfile
8+
9+
COPY ./Caddyfile /etc/caddy/Caddyfile
10+
RUN caddy validate --config /etc/caddy/Caddyfile

0 commit comments

Comments
 (0)