{"id":16800206,"url":"https://github.com/abiosoft/caddyplug","last_synced_at":"2025-03-22T02:30:58.629Z","repository":{"id":57484332,"uuid":"94716924","full_name":"abiosoft/caddyplug","owner":"abiosoft","description":"Experimental Caddy plugin manager using Go plugins","archived":false,"fork":false,"pushed_at":"2019-07-09T08:43:45.000Z","size":33,"stargazers_count":40,"open_issues_count":3,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T06:51:34.722Z","etag":null,"topics":["caddy","go","plugin","plugin-manager"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abiosoft.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}},"created_at":"2017-06-18T22:36:45.000Z","updated_at":"2024-01-27T14:09:55.000Z","dependencies_parsed_at":"2022-08-26T14:21:00.899Z","dependency_job_id":null,"html_url":"https://github.com/abiosoft/caddyplug","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/abiosoft%2Fcaddyplug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcaddyplug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcaddyplug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiosoft%2Fcaddyplug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abiosoft","download_url":"https://codeload.github.com/abiosoft/caddyplug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244897813,"owners_count":20528294,"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":["caddy","go","plugin","plugin-manager"],"created_at":"2024-10-13T09:31:31.519Z","updated_at":"2025-03-22T02:30:58.340Z","avatar_url":"https://github.com/abiosoft.png","language":"Go","readme":"# caddyplug\n\ncaddyplug is an experimental [Caddy](https://caddyserver.com) plugin manager using Go plugins.\n\n[Demonstration Video](https://youtu.be/uKSgHhh6-rA)\n\n## Requirements\n\n- Go 1.8\n- Linux/macOS\n- Caddy with hook.pluginloader plugin. Installable with `caddyplug install-caddy`.\n\n## Install\n\n```\ngo get github.com/abiosoft/caddyplug/caddyplug\n```\n\n## Usage\n\n```\n  Usage:\n    caddyplug \u003ccommand\u003e [plugins...]\n\n  Commands:\n    install       install plugins\n    uninstall     uninstall plugins\n    list          list plugins\n    install-caddy install caddy\n    package       get plugin package\n```\n\nExample\n\n```sh\n$ caddyplug install git linode\n ✓ git\n ✓ linode\n```\n\n## Goal\n\n### Building\n\n#### Current:\n\n- Edit source and add import line for plugin\n- Rebuild Caddy\n- Or select plugins and download on caddyserver.com/download\n- Repeat\n\n#### Desired:\n\n- Install plugins\n\n### Docker\n\n#### Current:\n\nOption 1\n\n- Search for Docker image with desired plugins\n- Give up and clone abiosoft/caddy (or similar) image\n- Modify plugins arg in Dockerfile\n- Worry about keeping track of upgrades to parent git/docker repo.\n\nOption 2\n\n- Use [abiosoft/caddy:builder](https://github.com/abiosoft/caddy-docker/blob/master/BUILDER.md)\n- Requires `docker build` and/or pushing custom image to own registry\n\n#### Desired:\n\nAdd plugins as required\n\n```Dockerfile\nFROM abiosoft/caddy:plugin # Hopefully this changes to 'FROM caddy'\nRUN caddyplug install git hugo digitalocean\n```\n\n## Caveats\n\n- Only works on Linux/macOS.\n- Due to limitations of Go plugins, Caddy and plugins must be built with same Go version. Installing Caddy with caddyplug is recommended to ensure this.\n- Not compatible with caddyserver.com/download yet. Requires [`CGO_ENABLED=1`](https://github.com/golang/go/issues/19569).\n- Large Docker images. Multi-stage builds may help.\n- Fetches `master` of plugin repositories.\n- `go build --buildmode=plugin` is slow. Stop building on-demand, maybe.\n- This is experimental and reliant on the [stability of Go plugins](https://github.com/golang/go/issues?utf8=%E2%9C%93\u0026q=is%3Aissue%20is%3Aopen%20plugins).\n\n## Note\n\n- This is not an official Caddy product.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiosoft%2Fcaddyplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabiosoft%2Fcaddyplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiosoft%2Fcaddyplug/lists"}