Skip to content

Commit 787b508

Browse files
committed
added caddy modules for rate limiting
1 parent adcf912 commit 787b508

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

8.4/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ ARG BUILDPLATFORM
1010
ARG TARGETOS
1111
ARG TARGETARCH
1212

13-
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH xcaddy build
13+
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH xcaddy build \
14+
--with github.com/mholt/caddy-ratelimit \
15+
--with github.com/pberkel/caddy-storage-redis
1416

1517
# -----------------------------------------------------
1618
# App Itself

8.5/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ ARG BUILDPLATFORM
1010
ARG TARGETOS
1111
ARG TARGETARCH
1212

13-
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH xcaddy build
13+
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH xcaddy build \
14+
--with github.com/mholt/caddy-ratelimit \
15+
--with github.com/pberkel/caddy-storage-redis
1416

1517
# -----------------------------------------------------
1618
# App Itself

0 commit comments

Comments
 (0)