We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To simplify configuration, we should accept either a config file, probably YAML, or an .env file.
The text was updated successfully, but these errors were encountered:
Both .env and .yml configuration are easily accomplished by using docker compose. It also cuts out the complexity of installing go etc.
.env
.yml
Here's an approximation of the workflow I'm using:
docker-compose.yml
version: "3" services: version: image: cyb3rjak3/cloudflare-utils command: --version help: image: cyb3rjak3/cloudflare-utils command: --help download: image: cyb3rjak3/cloudflare-utils environment: CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN} CLOUDFLARE_ZONE_NAME: ${CLOUDFLARE_ZONE_NAME} LOG_LEVEL_VERBOSE: ${LOG_LEVEL_VERBOSE} LOG_LEVEL_DEBUG: ${LOG_LEVEL_DEBUG} command: dns-cleaner download volumes: - ./records/${CLOUDFLARE_ZONE_NAME}.yml:/dns-records.yml upload: image: cyb3rjak3/cloudflare-utils environment: CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN} CLOUDFLARE_ZONE_NAME: ${CLOUDFLARE_ZONE_NAME} LOG_LEVEL_VERBOSE: ${LOG_LEVEL_VERBOSE} LOG_LEVEL_DEBUG: ${LOG_LEVEL_DEBUG} command: dns-cleaner upload volumes: - ./records/${CLOUDFLARE_ZONE_NAME}.yml:/dns-records.yml
CLOUDFLARE_API_TOKEN= CLOUDFLARE_ZONE_NAME= LOG_LEVEL_VERBOSE=true LOG_LEVEL_DEBUG=true
touch records/[YOUR_CLOUDFLARE_ZONE_NAME].yml
dns-cleaner download
docker compose run download
nano records/[YOUR_CLOUDFLARE_ZONE_NAME].yml
dns-cleaner upload
docker compose run upload
Sorry, something went wrong.
Cyb3r-Jak3
No branches or pull requests
To simplify configuration, we should accept either a config file, probably YAML, or an .env file.
The text was updated successfully, but these errors were encountered: