Skip to content

Commit

Permalink
feat: Add CloudNS SSL support with env vars to clustered version
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 20, 2024
1 parent 3243c02 commit 748d3b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# Enable admin API for clustering
admin off

# Global ACME DNS configuration for all sites
tls {
dns cloudns {
auth_id "{$CLOUDNS_AUTH_ID}"
auth_password "{$CLOUDNS_AUTH_PASSWORD}"
}
}

# Configure storage for clustering
storage etcd {
prefix "{$PORTAL_CORE_CLUSTERED_ETCD_PREFIX}"
Expand Down Expand Up @@ -30,4 +38,4 @@
# Handle direct domain access
:80, :443 {
reverse_proxy localhost:{$PORTAL_CORE_PORT}
}
}
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM caddy:2.9-builder AS builder

RUN xcaddy build \
--with go.lumeweb.com/caddy-etcd
--with go.lumeweb.com/caddy-etcd \
--with github.com/anxuanzi/caddy-dns-ClouDNS

FROM caddy:2.9-alpine

Expand All @@ -15,4 +16,4 @@ COPY --from=builder /usr/bin/caddy /usr/bin/caddy

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 748d3b8

Please sign in to comment.