| # ============================================================ | |
| # MedOS HuggingFace Space — full backend configuration | |
| # ============================================================ | |
| # --- LLM providers --- | |
| OLLABRIDGE_URL=https://ruslanmv-ollabridge.hf.space | |
| OLLABRIDGE_API_KEY=sk-ollabridge-your-key-here | |
| HF_TOKEN=hf_your-token-here | |
| DEFAULT_MODEL=free-best | |
| # --- Database (SQLite, persistent on HF Spaces /data/) --- | |
| DB_PATH=/data/medos.db | |
| # --- CORS (comma-separated Vercel frontend origins) --- | |
| ALLOWED_ORIGINS=https://your-vercel-app.vercel.app,http://localhost:3000 | |
| # --- Medicine Scanner proxy --- | |
| # Token with "Make calls to Inference Providers" permission. | |
| # Used server-side only — never exposed to browser. | |
| # Create at: https://huggingface.co/settings/tokens/new?ownUserPermissions=inference.serverless.write&tokenType=fineGrained | |
| HF_TOKEN_INFERENCE=hf_your-inference-token-here | |
| SCANNER_URL=https://ruslanmv-medicine-scanner.hf.space | |
| # --- Application --- | |
| NODE_ENV=production | |
| PORT=7860 | |