Fix Let's Encrypt certificate deployment issues

- Change CF_DNS_API_TOKEN_FILE to CLOUDFLARE_DNS_API_TOKEN_FILE (correct env var for Traefik/lego)
- Fix inject-secrets.sh to clean up Docker-created directories before injecting secrets
- Add detection for GitLab variables set as Variable type instead of File type
- Improve error messages to help diagnose configuration issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2025-12-20 11:45:00 -06:00
parent 9eb025a21f
commit ce6976d3ab
2 changed files with 36 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ services:
command:
- --configFile=/etc/traefik/traefik.yml
environment:
CF_DNS_API_TOKEN_FILE: /run/secrets/cloudflare-dns-token
CLOUDFLARE_DNS_API_TOKEN_FILE: /run/secrets/cloudflare-dns-token
ports:
- "80:80"
- "443:443"