Add Coolify Wrapper API integration
This enables deployment via apps.startanaicompany.com instead of direct Coolify access. New files: - deploy-to-apps.example.sh: Deployment script using Wrapper API - DEPLOYMENT_GUIDE.md: Comprehensive deployment documentation Updated files: - README.md: Updated deployment steps to use Wrapper API - .gitignore: Added deploy-to-apps.sh to exclusions Benefits: - Users no longer need master Coolify token - Each user gets their own API key - Automatic resource isolation - Rate limiting and audit logging - Simpler deployment process The old deploy-to-coolify.example.sh remains for reference but new deployments should use the wrapper API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
35
README.md
35
README.md
@@ -40,11 +40,10 @@ This repository is marked as a template. You can create your own recruitment sit
|
||||
### Prerequisites
|
||||
|
||||
- Gitea account at git.startanaicompany.com
|
||||
- Gitea API token
|
||||
- Coolify instance with API token
|
||||
- Wrapper API key (get from apps.startanaicompany.com)
|
||||
- Basic command line knowledge
|
||||
|
||||
**New to Coolify?** See [COOLIFY_SETUP.md](COOLIFY_SETUP.md) for detailed setup instructions.
|
||||
**📖 Detailed Guide:** See [DEPLOYMENT_GUIDE.md](DEPLOYMENT_GUIDE.md) for complete instructions.
|
||||
|
||||
### Step 1: Create Your Copy
|
||||
|
||||
@@ -90,28 +89,40 @@ GITEA_USERNAME=your-gitea-username
|
||||
GITEA_REPO_NAME=my-recruit-site
|
||||
```
|
||||
|
||||
### Step 3: Deploy to Coolify
|
||||
### Step 3: Register for API Key
|
||||
|
||||
Register once to get your deployment API key:
|
||||
|
||||
```bash
|
||||
# Set API tokens as environment variables (NOT in .env)
|
||||
export COOLIFY_API_TOKEN="your-coolify-token"
|
||||
export GITEA_API_TOKEN="your-gitea-token"
|
||||
curl -X POST https://apps.startanaicompany.com/api/v1/register \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"email":"your@email.com","gitea_username":"'${GITEA_USERNAME}'"}'
|
||||
```
|
||||
|
||||
Save the returned API key:
|
||||
```bash
|
||||
export WRAPPER_API_KEY="cw_your_api_key_here"
|
||||
```
|
||||
|
||||
### Step 4: Deploy
|
||||
|
||||
```bash
|
||||
# Copy and run the deployment script
|
||||
cp deploy-to-coolify.example.sh deploy-to-coolify.sh
|
||||
chmod +x deploy-to-coolify.sh
|
||||
./deploy-to-coolify.sh
|
||||
cp deploy-to-apps.example.sh deploy-to-apps.sh
|
||||
chmod +x deploy-to-apps.sh
|
||||
./deploy-to-apps.sh
|
||||
```
|
||||
|
||||
The script will:
|
||||
- Create a Coolify application
|
||||
- Create a Coolify application via Wrapper API
|
||||
- Configure domain (yournamerecruit.startanaicompany.com)
|
||||
- Set up webhooks for automatic deployments
|
||||
- Generate database and session secrets
|
||||
- Trigger initial deployment
|
||||
|
||||
**Your site will be live in 2-3 minutes!**
|
||||
|
||||
**See [DEPLOYMENT_GUIDE.md](DEPLOYMENT_GUIDE.md) for detailed instructions and troubleshooting.**
|
||||
|
||||
## 🎨 Customization Guide
|
||||
|
||||
### Company Information
|
||||
|
||||
Reference in New Issue
Block a user