CoopCredits Infrastructure Configuration Summary
Your Server Infrastructure
| Service |
IP Address |
Port |
Integration Role |
| Plex |
172.20.1.220 |
32400 |
User authentication, content |
| Overseer |
172.20.1.225 |
5055 |
Content requests, disk space |
| Tautulli |
172.20.1.255 |
8181 |
Watch tracking, $COOP earn |
| Website |
coop.hobokenchicken.com |
443 |
User dashboard, admin panel |
Files Created/Updated
Configuration Files
.env - Production environment
docker-compose.yml - Docker orchestration
docker-compose.prod.yml - Production Docker orchestration
Documentation
docs/SETUP-INFRASTRUCTURE.md - Step-by-step setup guide
docs/INFRASTRUCTURE.md - Architecture and network documentation
docs/CADDY-CONFIG.md - Reverse proxy configuration
docs/TROUBLESHOOTING.md - Common issues and fixes
Network Architecture
Quick Deployment Commands
Integration Points
Tautulli → CoopCredits
- Trigger: Watch events
- Webhook URL:
https://coop.hobokenchicken.com/webhooks/tautulli
- Action: Create WatchEvent + Transaction (EARN), update user balance
Overseer → CoopCredits
- Trigger: Request approval/decline
- Webhook URL:
https://coop.hobokenchicken.com/webhooks/overseer
- Action: Update ContentRequest status (refund if declined)
Plex → CoopCredits
- Trigger: User login
- Method: OAuth via plex.tv
- Action: Authenticate users, create session
Ko-fi → CoopCredits
- Trigger: Store purchase
- Webhook URL:
https://coop.hobokenchicken.com/webhooks/kofi
- Action: Create KofiPayment, credit user if email matches
Security Features
- SSL/TLS: Caddy with Let's Encrypt
- Rate Limiting: 1000 req/15min per IP
- Firewall: UFW rules for local network
- Secrets: In
.env file (gitignored)
- CORS: Configured for your domain
- JWT: Secure session tokens
- Ko-fi Verification: Token check on webhook
Monitoring
Backup Strategy
Next Steps
- Run setup:
cp .env.example .env and edit
- Get API keys:
- Deploy:
docker-compose up -d --build
- Configure webhooks in Tautulli, Overseer, and Ko-fi
- Set admin:
UPDATE users SET is_admin = true WHERE ...
- Test:
curl https://coop.hobokenchicken.com/health
Troubleshooting
| Issue |
Solution |
| Cannot reach local services |
Check backend network_mode: host |
| Webhook not received |
Check Caddy routes to port 3002 |
| Database connection failed |
Verify .env DATABASE_URL |
| SSL error |
Check Caddy certificate status |
| CORS errors |
Verify CORS_ORIGINS in .env |
| Request stuck PENDING |
Use admin SYNC button or check Overseer webhook |
Support Resources
- Setup Guide:
docs/SETUP-INFRASTRUCTURE.md
- Architecture:
docs/INFRASTRUCTURE.md
- Troubleshooting:
docs/TROUBLESHOOTING.md
- Caddy Config:
docs/CADDY-CONFIG.md