Gitea Integration
In addition to GitHub, Reoclo supports Gitea as a git provider. This lets you deploy from self-hosted Gitea repositories with the same webhook-driven workflow as GitHub.
How It Works
Section titled “How It Works”- You register your Gitea instance as a git provider in Reoclo
- You authorize Reoclo via OAuth2 to access your repositories
- Reoclo syncs your repositories and sets up webhooks
- Pushing to a configured branch triggers deployments, just like GitHub
Prerequisites
Section titled “Prerequisites”- A Gitea instance accessible via HTTPS
- Admin access to create an OAuth2 application on the Gitea instance
- A Reoclo admin role in your organization
Setting Up Gitea
Section titled “Setting Up Gitea”1. Create an OAuth2 Application in Gitea
Section titled “1. Create an OAuth2 Application in Gitea”In your Gitea instance:
- Go to Site Administration > Applications (or User Settings > Applications for user-scoped)
- Click Create a new OAuth2 Application
- Fill in:
- Application Name:
Reoclo - Redirect URI:
https://app.reoclo.com/git-providers/callback(or your self-hosted Reoclo URL)
- Application Name:
- Click Create Application
- Copy the Client ID and Client Secret
2. Add the Git Provider in Reoclo
Section titled “2. Add the Git Provider in Reoclo”- Navigate to Settings > Git Providers in the dashboard
- Click Add Provider
- Select Gitea as the provider type
- Fill in:
- Name: descriptive label (e.g., “Company Gitea”)
- Instance URL: your Gitea instance URL (e.g.,
https://git.company.com) - OAuth Client ID: from step 1
- OAuth Client Secret: from step 1 (encrypted at rest)
- Click Create
3. Connect via OAuth
Section titled “3. Connect via OAuth”- On the provider detail page, click Connect
- You’ll be redirected to your Gitea instance for authorization
- Authorize Reoclo to access your repositories
- You’ll be redirected back to Reoclo
Once connected, Reoclo automatically syncs your repositories.
4. Filter by Organization (Optional)
Section titled “4. Filter by Organization (Optional)”If you only want repositories from specific organizations, set Allowed Organizations on the provider. Only repositories from those organizations will be synced.
Repository Sync
Section titled “Repository Sync”After connecting, Reoclo fetches all repositories you have access to. The sync:
- Runs automatically after OAuth connection
- Can be triggered manually from the provider detail page
- Shows progress (total repos, completed repos)
- Handles pagination for large accounts
Synced repositories appear when creating applications, just like GitHub repositories.
Webhooks
Section titled “Webhooks”Reoclo automatically configures webhooks on your Gitea repositories when you create an application. Push events trigger deployments the same way GitHub push events do.
Each provider has a unique webhook secret generated automatically for signature verification.
Differences from GitHub
Section titled “Differences from GitHub”| Feature | GitHub | Gitea |
|---|---|---|
| Setup | Platform-managed GitHub App | Per-organisation OAuth2 |
| Scope | Organization-wide via App install | User-level via OAuth token |
| Webhooks | Automatic via GitHub App | Automatic via Reoclo |
| Token management | Short-lived installation tokens | OAuth refresh tokens (rotated on use) |
| PR previews | Supported | Not yet supported |
Troubleshooting
Section titled “Troubleshooting”| Issue | Cause | Fix |
|---|---|---|
| OAuth redirect fails | Wrong redirect URI in Gitea app | Verify the redirect URI matches your Reoclo instance |
| No repositories after connect | Token lacks permissions | Re-authorize with a user that has access to the repos |
| Sync shows 0 repos | Allowed organizations filter too restrictive | Clear the org filter or add the correct organizations |
| Webhooks not triggering | Gitea can’t reach Reoclo | Ensure your Gitea instance can make outbound HTTPS to Reoclo |
Next Steps
Section titled “Next Steps”- GitHub App Setup for the GitHub integration
- Deployment Configuration to configure how deployments work