{"id":22441276,"url":"https://github.com/rioastamal/caddy-plus-security","last_synced_at":"2026-03-06T02:07:36.619Z","repository":{"id":265979140,"uuid":"896820347","full_name":"rioastamal/caddy-plus-security","owner":"rioastamal","description":"Custom Caddy build with security plugin enabled.","archived":false,"fork":false,"pushed_at":"2024-12-02T09:29:54.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T19:52:34.619Z","etag":null,"topics":["bash","caddy","caddy-plugin","caddy-server","go","golang","shell"],"latest_commit_sha":null,"homepage":"","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/rioastamal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-12-01T11:52:14.000Z","updated_at":"2024-12-07T17:40:38.000Z","dependencies_parsed_at":"2025-04-13T19:40:24.253Z","dependency_job_id":"0f5c891c-8842-4bd6-ba71-396ae04bdc39","html_url":"https://github.com/rioastamal/caddy-plus-security","commit_stats":null,"previous_names":["rioastamal/caddy-plus-security"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rioastamal/caddy-plus-security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioastamal%2Fcaddy-plus-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioastamal%2Fcaddy-plus-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioastamal%2Fcaddy-plus-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioastamal%2Fcaddy-plus-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rioastamal","download_url":"https://codeload.github.com/rioastamal/caddy-plus-security/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioastamal%2Fcaddy-plus-security/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30158945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"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":["bash","caddy","caddy-plugin","caddy-server","go","golang","shell"],"created_at":"2024-12-06T02:13:36.698Z","updated_at":"2026-03-06T02:07:36.581Z","avatar_url":"https://github.com/rioastamal.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caddy with Security Plugin\n\nBash script for automating dependency installation and custom [Caddy](https://caddyserver.com/) build with [caddy-security](https://github.com/greenpau/caddy-security) plugin. Pre-built binaries can be found on the GitHub release page.\n\n## Features\n\n- Automatically installs Go and `xcaddy` for building Caddy.\n- Supports both `x86_64` and `aarch64` architectures.\n- Builds Caddy with the specified version of the caddy-security plugin.\n- Generates a detailed release report for the built Caddy binary.\n- Fully customizable with environment variables.\n\n## Requirements\n\n- Bash shell (it should work on other shells as well)\n- `curl` installed.\n\n## Installation\n\nDownload the script:\n\n```sh\ncurl -sL -o build.sh 'https://raw.githubusercontent.com/rioastamal/caddy-plus-security/refs/heads/main/build.sh'\n```\n\nor clone the repository:\n\n```sh\ngit clone https://github.com/rioastamal/caddy-plus-security.git\ncd caddy-plus-security\n```\n\n## Usage\n\nRun the script to build Caddy with the caddy-security plugin:\n\n```sh\nbash build.sh\n```\n\nBy default, the script installs:\n- **Go**: Version `1.23.3`\n- **xcaddy**: Version `0.4.4`\n- **Caddy**: Version `2.8.4`\n- **caddy-security**: Version `1.1.29`\n\n### Output\n\nThe built Caddy binary and release notes are saved in the `./out/` directory.\n\n```sh\n./out/caddy      # The built Caddy binary\n./out/release.txt # Release notes\n```\n\n### Customization\n\nYou can customize versions and skip installation steps by setting the following environment variables:\n\n| Environment Variable     | Description                              | Default Value  |\n|--------------------------|------------------------------------------|----------------|\n| `GO_VERSION`             | Version of Go to install                | `1.23.3`       |\n| `XCADDY_VERSION`         | Version of `xcaddy` to install          | `0.4.4`        |\n| `CADDY_VERSION`          | Version of Caddy to build               | `2.8.4`        |\n| `SECURITY_VERSION`       | Version of the caddy-security plugin    | `1.1.29`       |\n| `CADDY_OUTPUT`           | Output path for the built Caddy binary  | `./out/caddy`  |\n| `SKIP_GO_INSTALLER`      | Skip Go installation (set to `yes`)     | `no`           |\n| `SKIP_XCADDY_INSTALLER`  | Skip `xcaddy` installation (set to `yes`)| `no`           |\n\nExample:\n\n```sh\nGO_VERSION=1.20.5 CADDY_VERSION=2.8.0 SECURITY_VERSION=1.0.0 bash build-caddy.sh\n```\n\n### Updating PATH\n\nThe installation script places Go and xcaddy in $HOME/.local. Restart your shell or update PATH to enable.\n\n```sh\nsource ~/.bashrc\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any bug fixes or feature requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frioastamal%2Fcaddy-plus-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frioastamal%2Fcaddy-plus-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frioastamal%2Fcaddy-plus-security/lists"}