{"id":51196904,"url":"https://github.com/mohith-das/ollama-server","last_synced_at":"2026-06-27T21:08:24.772Z","repository":{"id":341331979,"uuid":"1127429899","full_name":"mohith-das/ollama-server","owner":"mohith-das","description":"JWT-protected FastAPI proxy for Ollama.","archived":false,"fork":false,"pushed_at":"2026-01-03T22:15:31.000Z","size":17911,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-01T08:33:55.079Z","etag":null,"topics":["fastapi","jwt","ollama","proxy","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohith-das.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-03T21:41:20.000Z","updated_at":"2026-01-03T22:16:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mohith-das/ollama-server","commit_stats":null,"previous_names":["mohith-das/ollama-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mohith-das/ollama-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohith-das%2Follama-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohith-das%2Follama-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohith-das%2Follama-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohith-das%2Follama-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohith-das","download_url":"https://codeload.github.com/mohith-das/ollama-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohith-das%2Follama-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34867871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","jwt","ollama","proxy","python"],"created_at":"2026-06-27T21:08:24.095Z","updated_at":"2026-06-27T21:08:24.768Z","avatar_url":"https://github.com/mohith-das.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ollama Server Middleware\n\nJWT-protected FastAPI proxy for Ollama with token issuance and request forwarding.\n\n## Highlights\n- Password-protected token creation with expiry.\n- Bearer auth enforced on proxy routes.\n- Streams Ollama responses through a protected endpoint.\n\n## Tech\nPython, FastAPI, JWT, Ollama\n\n## Setup\n```bash\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n```\n\n## Configuration\nSet environment variables as needed:\n- `SECRET_KEY` (default: `default_secret_key`)\n- `TOKEN_PASSWORD` (default: `default_token_password`)\n- `TOKEN_EXPIRE_HOURS` (default: `4`)\n- `OLLAMA_API_URL` (default: `http://127.0.0.1:11434/`)\n\n## Run\n```bash\nuvicorn auth_middleware:app --host 0.0.0.0 --port 8000\n```\n\n## Endpoints\n- `POST /generate-token`\n- `POST /protected/{path}`\n- `POST /revoke-token`\n- `GET /status`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohith-das%2Follama-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohith-das%2Follama-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohith-das%2Follama-server/lists"}