{"id":16776340,"url":"https://github.com/ameshkov/legoagh","last_synced_at":"2025-03-22T00:30:59.099Z","repository":{"id":45259178,"uuid":"396002258","full_name":"ameshkov/legoagh","owner":"ameshkov","description":"A simple script for automating using lego with AdGuard Home","archived":false,"fork":false,"pushed_at":"2023-06-10T09:41:22.000Z","size":15,"stargazers_count":92,"open_issues_count":8,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T06:22:53.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ameshkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-08-14T12:27:24.000Z","updated_at":"2025-02-02T14:08:52.000Z","dependencies_parsed_at":"2024-10-28T11:46:46.681Z","dependency_job_id":null,"html_url":"https://github.com/ameshkov/legoagh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Flegoagh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Flegoagh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Flegoagh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Flegoagh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ameshkov","download_url":"https://codeload.github.com/ameshkov/legoagh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890102,"owners_count":20527030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-13T07:09:40.658Z","updated_at":"2025-03-22T00:30:58.845Z","avatar_url":"https://github.com/ameshkov.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# legoagh\n\nA simple script for automating using lego with [AdGuard Home](https://github.com/AdguardTeam/AdGuardHome).\nIt downloads the latest available release of lego, runs it and obtains\na wildcard certificate for the specified domain.\n\nPrepare:\n\n```bash\nmkdir /opt/lego\ncurl -s https://raw.githubusercontent.com/ameshkov/legoagh/master/lego.sh --output lego.sh\nchmod +x lego.sh\n```\n\nIf you're using CloudFlare, you need to [create an API](https://developers.cloudflare.com/api/tokens/create) token first.\n\nThen run the script:\n\n```bash\nDOMAIN_NAME=\"example.org\" \\\n    EMAIL=\"you@email\" \\\n    DNS_PROVIDER=\"cloudflare\" \\\n    CLOUDFLARE_DNS_API_TOKEN=\"yourapitoken\" \\\n    ./lego.sh\n```\n\nIf you're using GoDaddy, you need to [create the API credentials](https://developer.godaddy.com/keys).\n\nThen run the script:\n\n```bash\nDOMAIN_NAME=\"example.org\" \\\n    EMAIL=\"you@email\" \\\n    DNS_PROVIDER=\"godaddy\" \\\n    GODADDY_API_KEY=\"yourapikey\" \\\n    GODADDY_API_SECRET=\"yourapisecret\" \\\n    ./lego.sh\n```\n\nIf you're using DigitalOcean, you need to [create an API](https://cloud.digitalocean.com/account/api/tokens) token first.\n\nThen run the script:\n\n```bash\nDOMAIN_NAME=\"example.org\" \\\n    EMAIL=\"you@email\" \\\n    DNS_PROVIDER=\"digitalocean\" \\\n    DO_AUTH_TOKEN=\"yourapitoken\" \\\n    ./lego.sh\n```\n\n\nIf you're using DuckDNS, you need to [copy the API from duckdns](https://www.duckdns.org/).\n\nThen run the script:\n\n```bash\nDOMAIN_NAME=\"example.duckdns.org\" \\\n    EMAIL=\"you@email\" \\\n    DNS_PROVIDER=\"duckdns\" \\\n    DUCKDNS_TOKEN=\"yourduckdnstoken\" \\\n    ./lego.sh\n```\n\nBy default, it uses [Let's Encrypt](https://letsencrypt.org/) to generate the certificate.\n\nAlternatively, you can use a different provider. For instance, [ZeroSSL](https://zerossl.com/).\n\nTo do this, you need to sign up for a ZeroSSL account and obtain your EAB credentials.\nThen just pass it to the script:\n\n```bash\nSERVER=\"https://acme.zerossl.com/v2/DV90\" \\\n    EAB_KID=\"xxxx\" \\\n    EAB_HMAC=\"xxxx\" \\\n    ...\n    ...\n    ./lego.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameshkov%2Flegoagh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fameshkov%2Flegoagh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameshkov%2Flegoagh/lists"}