Skip to content

Commit

Permalink
feat: caddy digital ocean dns provider
Browse files Browse the repository at this point in the history
  • Loading branch information
xNok committed Jul 7, 2024
1 parent e1732af commit 7e5f07b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ jobs:
CADDY_GITHUB_CLIENT_ID: ${{ secrets.CADDY_GITHUB_CLIENT_ID }}
CADDY_GITHUB_CLIENT_SECRET: ${{ secrets.CADDY_GITHUB_CLIENT_SECRET }}
CADDY_JWT_SHARED_KEY: ${{ secrets.CADDY_JWT_SHARED_KEY }}
DIGITALOCEAN_API_TOKEN: ${{ secrets.CADDY_DIGITALOCEAN_API_TOKEN }}
3 changes: 3 additions & 0 deletions ansible/roles/docker-swarm-app-caddy/assets/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@

auth.{{domain}} {
authenticate with myportal
tls {
dns digitalocean {env.CADDY_DIGITALOCEAN_API_TOKEN}
}
}
3 changes: 2 additions & 1 deletion ansible/roles/docker-swarm-app-caddy/assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
RUN xcaddy build \
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
--with github.com/greenpau/caddy-security \
--with github.com/greenpau/caddy-trace
--with github.com/greenpau/caddy-trace \
--with github.com/caddy-dns/digitalocean

FROM caddy:${CADDY_VERSION}-alpine

Expand Down

0 comments on commit 7e5f07b

Please sign in to comment.