/home/techb158/trellopowerup.abdallabala.com/docs
NameSizeModeActions
00-design-study.md36780644editdlrm
01-uml-class-diagram.puml118690644editdlrm
02-use-case-diagram.puml37630644editdlrm
03-sequence-diagrams.puml97320644editdlrm
04-database-entity-model.mmd70510644editdlrm
05-database-schema.sql133720644editdlrm
06-diagram-preview.html50210644editdlrm
07-design-checklist.md32560644editdlrm
08-step-2-storage-layer.md53250644editdlrm
09-step-3-risk-crud-ui.md33800644editdlrm
10-step-4-mitigation-workflow.md39960644editdlrm
11-step-5-deployment-gate-workflow.md22920644editdlrm
12-step-6-multi-pm-integration.md37700644editdlrm
13-step-6-1-microsoft-planner-integration.md23350644editdlrm
14-step-7-reporting-export.md41580644editdlrm
15-step-7-1-oauth-live-connectors.md45450644editdlrm
16-step-8-user-roles-access-control.md32970644editdlrm
17-step-9-production-deployment-security.md42280644editdlrm
18-step-10-final-academic-submission.md31990644editdlrm
19-final-report-draft.md68140644editdlrm
20-instructor-submission-checklist.md36390644editdlrm
21-demo-script.md39480644editdlrm
22-traceability-matrix.md48470644editdlrm
23-testing-evidence.md29610644editdlrm
24-evaluation-rubric-mapping.md29100644editdlrm
25-final-deployment-runbook.md32140644editdlrm
26-known-limitations-and-future-work.md26320644editdlrm
27-final-qa-checklist.md28930644editdlrm
28-demo-rehearsal-script.md36180644editdlrm
29-submission-freeze-report.md27690644editdlrm
30-final-known-issues.md18760644editdlrm
31-trello-powerup-implementation-guide.md76080644editdlrm
32-vps-deployment-guide.md36970644editdlrm
dashboard-spec.md36910644editdlrm
methodology-mapping.md24710644editdlrm
next-implementation-step.md13040644editdlrm
trello-admin-setup.md21750644editdlrm
Edit: /home/techb158/trellopowerup.abdallabala.com/docs/32-vps-deployment-guide.md (3697B)
# VPS Deployment Guide for Trello Power-Up This guide deploys the COSMIC AI-Risk Trello Power-Up to a VPS with Docker Compose and an HTTPS reverse proxy. ## Requirements - VPS with Ubuntu/Debian or similar Linux. - A domain or subdomain pointed to the VPS, for example `trello.yourdomain.com`. - Docker and Docker Compose installed. - Nginx or another reverse proxy with HTTPS. - Trello Power-Up API key. Trello requires the connector URL and iframe pages to load over HTTPS. ## Files Added for VPS - `docker-compose.vps.yml` - VPS-friendly Compose file. - `.dockerignore` - keeps `node_modules`, `.env`, `data`, and logs out of the Docker build context. ## Local Upload Option From your local project folder, create an archive that excludes runtime files: ```bash tar --exclude=node_modules --exclude=data --exclude=.env --exclude=.git -czf cosmic-trello-powerup.tar.gz . ``` Upload it to the VPS: ```bash scp cosmic-trello-powerup.tar.gz USER@SERVER_IP:/opt/ ``` On the VPS: ```bash sudo mkdir -p /opt/cosmic-trello-powerup sudo tar -xzf /opt/cosmic-trello-powerup.tar.gz -C /opt/cosmic-trello-powerup cd /opt/cosmic-trello-powerup ``` ## VPS Environment File Create `/opt/cosmic-trello-powerup/.env`: ```env PORT=3000 HOST_PORT=3000 PUBLIC_BASE_URL=https://trello.yourdomain.com TRELLO_API_KEY=replace_with_power_up_api_key TRELLO_APP_NAME=COSMIC AI-Risk Management ALLOWED_ORIGINS=https://trello.com,https://*.trello.com,https://trello.yourdomain.com COSMIC_STORE_FILE=./data/store.json COSMIC_REVIEW_STALE_DAYS=30 ``` Create runtime storage: ```bash mkdir -p data ``` ## Build and Start ```bash docker compose -f docker-compose.vps.yml up -d --build ``` Check status: ```bash docker compose -f docker-compose.vps.yml ps docker compose -f docker-compose.vps.yml logs -f ``` Health check from the VPS: ```bash curl http://127.0.0.1:3000/api/health ``` Expected version is currently `0.4.5`. ## Nginx Reverse Proxy Example Create `/etc/nginx/sites-available/trello-powerup`: ```nginx server { listen 80; server_name trello.yourdomain.com; location / { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } ``` Enable it: ```bash sudo ln -s /etc/nginx/sites-available/trello-powerup /etc/nginx/sites-enabled/trello-powerup sudo nginx -t sudo systemctl reload nginx ``` Add HTTPS with Certbot: ```bash sudo certbot --nginx -d trello.yourdomain.com ``` After HTTPS is active, verify: ```bash curl https://trello.yourdomain.com/api/health ``` ## Trello Power-Up Admin In Trello Power-Up admin, set connector URL to: ```text https://trello.yourdomain.com/index.html ``` Enable these capabilities: - `authorization-status` - `show-authorization` - `show-settings` - `board-buttons` - `card-buttons` - `card-badges` - `card-detail-badges` - `card-back-section` Then add the Power-Up to a Trello board and set the COSMIC API base URL to: ```text https://trello.yourdomain.com ``` ## Update Deployment Later Upload the new archive, then on the VPS: ```bash cd /opt/cosmic-trello-powerup docker compose -f docker-compose.vps.yml up -d --build ``` The `./data` folder is mounted into the container, so local JSON runtime data survives rebuilds. ## Notes - JSON storage is acceptable for prototype VPS testing. - For production multi-user usage, replace JSON storage with PostgreSQL or another managed database. - Do not commit `.env` or upload local `data` unless you intentionally want to migrate runtime data.