Commit graph

6 commits

Author SHA1 Message Date
SamoilenkoVadym
f44dcc1388 fix(config): correct FRONTEND_URL to include path
- Change FRONTEND_URL to full URL with /solventum-image-metadata path
- Ensures CORS allows requests from correct origin

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 14:31:38 +00:00
SamoilenkoVadym
3585aaff0b fix(sso): add OAuth callback handler with correct redirect URI
- Update .env: REDIRECT_URI without /api/ prefix
- Add OAuth handler in App.tsx for SSO callback
- Add basename to BrowserRouter: /solventum-image-metadata
- Add .env.production for server deployment

Matches Azure AD config:
  https://ai-sandbox.oliver.solutions/solventum-image-metadata/

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 14:28:07 +00:00
SamoilenkoVadym
9fd8581dd4 fix(config): use port 5001 for Azure AD compatibility
- Change BACKEND_PORT from 8001 to 5001 (same as Flask)
- Keeps existing Azure AD redirect URI working
- No need to update Azure AD app registration
- Apache proxy can use same port configuration

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:29:45 +00:00
SamoilenkoVadym
0d706fe79b fix(config): change backend port to 8001 (port 8000 occupied on server)
- Make BACKEND_PORT configurable via .env
- Update docker-compose to use ${BACKEND_PORT:-8001}
- Update deploy.sh to read port from .env
- Update Apache config examples to use port 8001
- Update all documentation with correct port

Apache config must proxy:
  /solventum-image-metadata/api → http://localhost:8001

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:26:51 +00:00
SamoilenkoVadym
856dacb7ab fix(config): correct Azure AD redirect URI and add Apache migration guide
- Update REDIRECT_URI to include /api/auth/microsoft/callback path
- Add production Azure AD credentials to .env.fastapi.example
- Create Apache migration guide with correct configuration

BREAKING CHANGE: Apache proxy must change from port 5001 to 8000
- Old: ProxyPass /solventum-image-metadata/ http://localhost:5001/
- New: ProxyPass /solventum-image-metadata/api http://localhost:8000

Frontend now served as static files, not proxied.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:21:41 +00:00
SamoilenkoVadym
a95f7be047 feat(deploy): add production deployment for Ubuntu with Docker
- Create idempotent deploy.sh for production deployment
- Add docker-compose.fastapi.yml with Redis + Backend
- Configure health checks for all services
- Add .env.fastapi.example with all configuration
- Remove old Flask deployment script (docker-run.sh)

Deployment features:
- Pre-flight checks (Docker, Node, permissions)
- Frontend build with Vite
- Deploy to /var/www/html/solventum-image-metadata
- Graceful container restart
- Health checks (backend + Redis)
- Auto-cleanup old Docker images

Usage:
  cd /opt/solventum-image-metadata
  git pull origin main
  sudo ./deploy.sh

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:15:04 +00:00