# Template Minimal Forgejo + Coolify deployment template. This repository is intended to stay on Forgejo. Coolify should use it as an "Other Git Provider" repository: - Public repo: use `http://192.168.1.113:3001/artur/template` as the HTTPS/HTTP repository URL. - Private repo: add a deploy key in Coolify and Forgejo, then use `ssh://git@192.168.1.113:222/artur/template.git`. Automatic deployments are handled by Forgejo Actions calling Coolify's Deploy Webhook. ## Required Forgejo Secrets Add these in `Settings -> Actions -> Secrets`: | Secret | Purpose | |--------|---------| | `COOLIFY_WEBHOOK` | Deploy Webhook URL from the Coolify resource | | `COOLIFY_TOKEN` | Coolify API token with `deploy` permission | The workflow calls: ```sh curl --request GET "$COOLIFY_WEBHOOK" \ --header "Authorization: Bearer $COOLIFY_TOKEN" ``` ## Coolify MCP Coolify's MCP server is read-only. Enable it in Coolify with a `root` API token: ```sh curl -X POST http://192.168.1.101:8000/api/v1/mcp/enable \ -H "Authorization: Bearer " ``` Then configure MCP clients with: - URL: `http://192.168.1.101:8000/mcp` - Header: `Authorization: Bearer ` Use a token with `read` permission for MCP, not `root`. ## Local Test ```sh docker build -t template:local . docker run --rm -p 8080:80 template:local ```