How zeeshan933/agentic-ai-workspace-gateway works
AI Workspace SSO Gateway: users enter through Nginx, which routes protected workspace traffic through Flask session validation before granting access. Flask also provides the dashboard, account administration, and OTP-based password recovery, backed by PostgreSQL and SMTP. The README documents routing for Flowise, n8n, and Ollama, plus Cloudflare Tunnel exposure. Source excerpts are partial, so details beyond the documented architecture and shown Flask calls are not inferred.
Main entry points: app.py Flask Gateway · nginx.conf Nginx Proxy · docker-compose.yaml Service Configuration · templates Web Templates
Components 18
Gateway and Routing
- Nginx Proxy
proxy/nginx.conf - Service Configuration
proxy/docker-compose.yaml - Cloudflare Tunnel
Identity and Accounts
- Flask Gateway
app.py - SSO Validation
app.py - Workspace Dashboard
app.py - Web Templates
templates - Login and Sessions
app.py - User Administration
app.py - Bulk User Import
app.py - Password Recovery
app.py
AI Workspace
- Flowise
- n8n
- Ollama
State and Messaging
- OTP Email
app.py - PostgreSQL
- SMTP Server
Other components
- Workspace User
Connections 19
- Workspace User → Nginx Proxy: sends requests
readme.md - Nginx Proxy → Flask Gateway: routes traffic
readme.md - Nginx Proxy → SSO Validation: checks sessions
readme.md - SSO Validation → Flask Gateway: validates via endpoint
readme.md - Flask Gateway → Login and Sessions: serves authentication
app.py - Flask Gateway → Workspace Dashboard: serves dashboard
app.py - Flask Gateway → User Administration: serves admin controls
readme.md - User Administration → Bulk User Import: accepts uploads
readme.md - Flask Gateway → Password Recovery: handles reset flow
app.py - Password Recovery → OTP Email: sends verification code
app.py - OTP Email → SMTP Server: sends email
app.py - Flask Gateway → Web Templates: renders pages
app.py - Flask Gateway → PostgreSQL: persists account data
readme.md - Nginx Proxy → Flowise: routes protected traffic
readme.md - Nginx Proxy → n8n: routes protected traffic
readme.md - Nginx Proxy → Ollama: routes protected traffic
readme.md - Flask Gateway → Ollama: checks availability
app.py - Service Configuration → Nginx Proxy: configures service
- Service Configuration → Cloudflare Tunnel: configures tunnel
readme.md