{"id":25866289,"url":"https://github.com/maxiviper117/example-caddy-ratelimiting","last_synced_at":"2025-08-17T21:41:28.896Z","repository":{"id":280169615,"uuid":"941183920","full_name":"Maxiviper117/example-caddy-ratelimiting","owner":"Maxiviper117","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T17:34:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T18:31:46.809Z","etag":null,"topics":["caddy","example","rate-limiting"],"latest_commit_sha":null,"homepage":"","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/Maxiviper117.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":"2025-03-01T17:31:04.000Z","updated_at":"2025-03-01T17:34:11.000Z","dependencies_parsed_at":"2025-03-01T18:31:49.303Z","dependency_job_id":"9cc62912-e75e-4904-a1a3-521c24f2d106","html_url":"https://github.com/Maxiviper117/example-caddy-ratelimiting","commit_stats":null,"previous_names":["maxiviper117/example-caddy-ratelimiting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Maxiviper117/example-caddy-ratelimiting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxiviper117%2Fexample-caddy-ratelimiting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxiviper117%2Fexample-caddy-ratelimiting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxiviper117%2Fexample-caddy-ratelimiting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxiviper117%2Fexample-caddy-ratelimiting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maxiviper117","download_url":"https://codeload.github.com/Maxiviper117/example-caddy-ratelimiting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxiviper117%2Fexample-caddy-ratelimiting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270912554,"owners_count":24666748,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["caddy","example","rate-limiting"],"created_at":"2025-03-02T02:29:24.825Z","updated_at":"2025-08-17T21:41:28.856Z","avatar_url":"https://github.com/Maxiviper117.png","language":"Shell","readme":"# Example Caddy Rate Limiting Repository\n\nThis repository demonstrates how to configure Caddy with rate limiting.\n\n## Overview\n\n- Uses a custom Dockerfile to build Caddy with the [caddy-ratelimit](https://github.com/mholt/caddy-ratelimit) module.\n- Provides a Caddyfile with two rate limiting zones:\n  - **Static Zone:** Applies globally to all GET requests.\n  - **Dynamic Zone:** Applies separately per client IP.\n\n## Files\n- **Caddyfile:** Configuration for Caddy and rate limiting.\n- **Dockerfile:** Builds the custom Caddy image with the rate limit module.\n- **docker-compose.yml:** Runs Caddy with Docker Compose.\n- **test_ratelimit.sh:** Script to test rate limit behavior.\n\n## Getting Started\n\n1. **Build the Docker image:**\n   ```bash\n   docker build -t my-caddy-ratelimit .\n   ```\n2. **Run with Docker Compose:**\n   ```bash\n   docker-compose up --build -d\n   ```\n3. **Testing Rate Limiting:**\n   Run the test script:\n   ```bash\n   ./test_ratelimit.sh\n   ```\n\n## Notes\n- Adjust the test script and Caddyfile configurations as needed for your environment.\n- The repository provides an example setup for demonstration purposes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxiviper117%2Fexample-caddy-ratelimiting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxiviper117%2Fexample-caddy-ratelimiting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxiviper117%2Fexample-caddy-ratelimiting/lists"}