.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DEBUG
────────────────────────────────────────── Application ──────────────────────────────────────────
DATABASE_URL
secret
────────────────────────────────────────── Database (PostgreSQL) ──────────────────────────────────────────
REDIS_URL
secret
────────────────────────────────────────── Redis ──────────────────────────────────────────
SECRET_KEY
secret
────────────────────────────────────────── JWT Authentication Generate with: openssl rand -hex 32 ──────────────────────────────────────────
ACCESS_TOKEN_EXPIRE_MINUTES
secret
REFRESH_TOKEN_EXPIRE_DAYS
secret
OLLAMA_BASE_URL
────────────────────────────────────────── Ollama (LLM — used by AI service directly) ──────────────────────────────────────────
OLLAMA_MODEL
OLLAMA_EMBED_MODEL
AI_SERVICE_URL
────────────────────────────────────────── AI Service (LLM + RAG + document extraction) Run: cd hub-AI && uvicorn app.main:app --port 8003…
CHROMA_HOST
────────────────────────────────────────── ChromaDB (Vector store for RAG) ──────────────────────────────────────────
CHROMA_PORT
RABBITMQ_URL
────────────────────────────────────────── RabbitMQ (Message queue) ──────────────────────────────────────────
AWS_ACCESS_KEY_ID
secret
────────────────────────────────────────── AWS / S3 (File storage) Credentials will be shared by instructor…
AWS_SECRET_ACCESS_KEY
secret
AWS_REGION
secret
S3_BUCKET_NAME
GOOGLE_CLIENT_ID
────────────────────────────────────────── Google OAuth (optional) ──────────────────────────────────────────
GOOGLE_CLIENT_SECRET
secret
brew install flyctl && fly launch --from https://github.com/ramkumarmn/hub_backend
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/ramkumarmn/hub_backend
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/ramkumarmn/hub_backend