{"id":46283119,"url":"https://github.com/brahma-dev/acme-lego-cron","last_synced_at":"2026-03-04T06:18:46.372Z","repository":{"id":56622214,"uuid":"283478329","full_name":"brahma-dev/acme-lego-cron","owner":"brahma-dev","description":"Dockerized Lego with cron.","archived":false,"fork":false,"pushed_at":"2026-02-19T14:16:27.000Z","size":60,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T17:53:29.156Z","etag":null,"topics":["acme","acme-dns","certificate","cron","docker","lego"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/brahmadev/acme-lego-cron","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brahma-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-29T11:16:07.000Z","updated_at":"2026-02-19T14:16:31.000Z","dependencies_parsed_at":"2024-01-28T20:37:23.346Z","dependency_job_id":"fc539a24-305f-4420-be38-284257d463b7","html_url":"https://github.com/brahma-dev/acme-lego-cron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brahma-dev/acme-lego-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahma-dev%2Facme-lego-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahma-dev%2Facme-lego-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahma-dev%2Facme-lego-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahma-dev%2Facme-lego-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brahma-dev","download_url":"https://codeload.github.com/brahma-dev/acme-lego-cron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahma-dev%2Facme-lego-cron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30074035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acme","acme-dns","certificate","cron","docker","lego"],"created_at":"2026-03-04T06:18:45.641Z","updated_at":"2026-03-04T06:18:46.332Z","avatar_url":"https://github.com/brahma-dev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# acme-lego-cron\n\n[![github-actions](https://github.com/brahma-dev/acme-lego-cron/workflows/build/badge.svg)](https://github.com/brahma-dev/acme-lego-cron/actions)\n\nDockerized [Lego](https://go-acme.github.io/lego/) with cron. Caters to DNS ACME challenge; other challenges can be worked out using `LEGO_ARGS`.\n\n## Environment variables\n\nEnvironment variables are used to control various steps of the automation process.\n\n## Lego\n\n| Name | Default value | Description | Corresponds to `lego` argument |\n|:-------:|:---------------:|:---------:|:---------:|\n| `STAGING` | `0` |  Whether to use production or staging LetsEncrypt endpoint. 0 for production, 1 for staging\n| `KEY_TYPE` | `ec384` | Type of key. | `--key-type`\n| `DOMAINS` | `\"\"` | Domains (delimited by ';' ) | `--domains`, `-d`\n| `EMAIL_ADDRESS` | `\"\"` | Email used for registration and recovery contact. | `--email`, `-m`\n| `PROVIDER` | `\"\"` | DNS Provider. Valid values are:\u003cbr/\u003e`com35`,`active24`,`edgedns`,`alidns`,`aliesa`,`allinkl`,\u003cbr/\u003e`alwaysdata`,`lightsail`,`route53`,`anexia`,`artfiles`,\u003cbr/\u003e`arvancloud`,`auroradns`,`autodns`,`axelname`,`azion`,\u003cbr/\u003e`azure`,`azuredns`,`baiducloud`,`beget`,`binarylane`,\u003cbr/\u003e`bindman`,`bluecat`,`bluecatv2`,`bookmyname`,`brandit`,\u003cbr/\u003e`bunny`,`checkdomain`,`civo`,`cloudru`,`clouddns`,\u003cbr/\u003e`cloudflare`,`cloudns`,`cloudxns`,`conoha`,`conohav3`,\u003cbr/\u003e`constellix`,`corenetworks`,`cpanel`,`ddnss`,`derak`,\u003cbr/\u003e`desec`,`designate`,`digitalocean`,`directadmin`,\u003cbr/\u003e`dnsmadeeasy`,`dnsexit`,`dnshomede`,`dnsimple`,`dnspod`,\u003cbr/\u003e`dode`,`domeneshop`,`dreamhost`,`duckdns`,`dyn`,\u003cbr/\u003e`dyndnsfree`,`dynu`,`easydns`,`edgecenter`,`efficientip`,\u003cbr/\u003e`epik`,`exoscale`,`exec`,`f5xc`,`freemyip`,`namesurfer`,\u003cbr/\u003e`gcore`,`gandi`,`gandiv5`,`gigahostno`,`glesys`,`godaddy`,\u003cbr/\u003e`gcloud`,`googledomains`,`gravity`,`hetzner`,`hostingde`,\u003cbr/\u003e`hostingnl`,`hostinger`,`hosttech`,`httpreq`,`httpnet`,\u003cbr/\u003e`huaweicloud`,`hurricane`,`hyperone`,`ibmcloud`,`iijdpf`,\u003cbr/\u003e`infoblox`,`infomaniak`,`iij`,`internetbs`,`inwx`,`ionos`,\u003cbr/\u003e`ionoscloud`,`ipv64`,`ispconfig`,`ispconfigddns`,\u003cbr/\u003e`iwantmyname`,`jdcloud`,`joker`,`acme-dns`,`keyhelp`,\u003cbr/\u003e`leaseweb`,`liara`,`limacity`,`linode`,`liquidweb`,\u003cbr/\u003e`loopia`,`luadns`,`mailinabox`,`manageengine`,`manual`,\u003cbr/\u003e`metaname`,`metaregistrar`,`mijnhost`,`mittwald`,`myaddr`,\u003cbr/\u003e`mydnsjp`,`mythicbeasts`,`namedotcom`,`namecheap`,\u003cbr/\u003e`namesilo`,`nearlyfreespeech`,`neodigit`,`netcup`,\u003cbr/\u003e`netlify`,`nicmanager`,`nifcloud`,`njalla`,`nodion`,`ns1`,\u003cbr/\u003e`octenium`,`otc`,`oraclecloud`,`ovh`,`plesk`,`porkbun`,\u003cbr/\u003e`pdns`,`rackspace`,`rainyun`,`rcodezero`,`regru`,`regfish`,\u003cbr/\u003e`rfc2136`,`rimuhosting`,`nicru`,`sakuracloud`,`scaleway`,\u003cbr/\u003e`selectel`,`selectelv2`,`selfhostde`,`servercow`,\u003cbr/\u003e`shellrent`,`simply`,`sonic`,`spaceship`,`stackpath`,\u003cbr/\u003e`syse`,`technitium`,`tencentcloud`,`edgeone`,\u003cbr/\u003e`timewebcloud`,`todaynic`,`transip`,`safedns`,`ultradns`,\u003cbr/\u003e`uniteddomains`,`variomedia`,`vegadns`,`vercel`,`versio`,\u003cbr/\u003e`vinyldns`,`virtualname`,`vkcloud`,`volcengine`,`vscale`,\u003cbr/\u003e`vultr`,`webnamesca`,`webnames`,`websupport`,`wedos`,\u003cbr/\u003e`westcn`,`yandex360`,`yandexcloud`,`yandex`,`zoneee`,\u003cbr/\u003e`zoneedit`,`zonomi` | `--dns`\n| `DNS_TIMEOUT` | `10` | Set the DNS timeout value to a specific value in seconds. | `--dns-timeout`.\n| `LEGO_ARGS` | `\"\"` | Send arguments directly to lego, e.g. `\"--dns.disable-cp\"` or `\"--dns.resolvers 1.1.1.1\"` |\n\n--------------------\n\n## Hooks\n\nYou can mount a shell script to /app/hook.sh to run whenever a cert is issued. This image comes with bash/curl/wget/jq preinstalled.\n\n## Examples\n\nThis example get one certificate for `*.example.com` and `example.com` using cloudflare dns :\n\n- Use staging endpoint during development.\n\n\n```yaml\nservices:\n  lego:\n    image: brahmadev/acme-lego-cron:latest\n    environment:\n      STAGING: 1\n      DOMAINS: \"example.com;*.example.com\"\n      EMAIL_ADDRESS: user@example.com\n      CLOUDFLARE_DNS_API_TOKEN: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n      PROVIDER: cloudflare\n      LEGO_ARGS: \"--dns.disable-cp --dns.resolvers 1.1.1.1\"\n    volumes:\n      - ./letsencrypt:/letsencrypt\n```\nWith hook: Check [hook.sh](https://github.com/brahma-dev/acme-lego-cron/blob/main/app/hook.sh \"hook.sh\") for an example.\n```yaml\nservices:\n  nginx:\n    container_name: nginx01\n    image: nginx:alpine\n    ports:\n    - mode: host\n      published: 443\n      target: 443\n    - mode: host\n      published: 80\n      target: 80\n    volumes:\n      - ./html/:/var/www/html\n      - ./nginx-example.conf:/etc/nginx/conf.d/default.conf\n      - \"./letsencrypt:/letsencrypt\"\n  lego:\n    image: brahmadev/acme-lego-cron:latest\n    environment:\n      STAGING: 1\n      DOMAINS: \"example.com;*.example.com\"\n      EMAIL_ADDRESS: user@example.com\n      CLOUDFLARE_DNS_API_TOKEN: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n      PROVIDER: cloudflare\n      LEGO_ARGS: \"--dns.disable-cp --dns.resolvers 1.1.1.1\"\n    volumes:\n      - ./hook.sh:/app/hook.sh\n      - /var/run/docker.sock:/var/run/docker.sock\n      - ./letsencrypt:/letsencrypt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrahma-dev%2Facme-lego-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrahma-dev%2Facme-lego-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrahma-dev%2Facme-lego-cron/lists"}