{"id":15154345,"url":"https://github.com/davinci13/mongodb-proxy-portal","last_synced_at":"2026-02-19T04:31:23.034Z","repository":{"id":245623199,"uuid":"818784356","full_name":"daVinci13/MongoDB-Proxy-Portal","owner":"daVinci13","description":"This script sets up a proxy portal that logs connections to a MongoDB database. It's designed to run in a Docker container and is configurable via environment variables.","archived":false,"fork":false,"pushed_at":"2024-07-21T23:04:30.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T19:04:13.783Z","etag":null,"topics":["docker","http","mongo","mongodb","proxy"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/davinci19/mongodb-proxy-portal","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/daVinci13.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}},"created_at":"2024-06-22T21:24:07.000Z","updated_at":"2024-07-21T23:04:33.000Z","dependencies_parsed_at":"2024-09-02T15:41:20.895Z","dependency_job_id":null,"html_url":"https://github.com/daVinci13/MongoDB-Proxy-Portal","commit_stats":null,"previous_names":["davinci13/mongodb-proxy-portal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daVinci13/MongoDB-Proxy-Portal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daVinci13%2FMongoDB-Proxy-Portal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daVinci13%2FMongoDB-Proxy-Portal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daVinci13%2FMongoDB-Proxy-Portal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daVinci13%2FMongoDB-Proxy-Portal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daVinci13","download_url":"https://codeload.github.com/daVinci13/MongoDB-Proxy-Portal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daVinci13%2FMongoDB-Proxy-Portal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005027,"owners_count":26083825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["docker","http","mongo","mongodb","proxy"],"created_at":"2024-09-26T17:21:55.667Z","updated_at":"2025-10-10T19:04:15.992Z","avatar_url":"https://github.com/daVinci13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 MongoDB Proxy Portal\n\nThis script sets up a proxy portal that logs connections to a MongoDB database. It's designed to run in a Docker container and is configurable via environment variables.\n\n## Description\n\nThe proxy server listens on the specified `PROXY_PORT` and forwards all connections to the MongoDB instance specified by `MONGO_HOST` and `MONGO_PORT`. It logs each connection's IP address and timestamp to the specified MongoDB database and collection.\n\n## Environment Variables\n\n- **`MONGO_HOST`**: MongoDB host (default: `localhost`)\n- **`MONGO_PORT`**: MongoDB port (default: `27017`)\n- **`PROXY_PORT`**: Proxy port (default: `2222`)\n- **`DB_NAME`**: Database name (default: `logs`)\n- **`COLLECTION_NAME`**: Collection name (default: `connections`)\n\n## Running with Docker\n\n### Using Docker Run\n\n```bash\ndocker run -d \\\n    --name Mongo_Portal \\\n    -e MONGO_HOST=your_mongo_host \\\n    -e MONGO_PORT=27017 \\\n    -e PROXY_PORT=2222 \\\n    -e DB_NAME=logs \\\n    -e COLLECTION_NAME=connections \\\n    -p 2222:2222 \\\n    davinci19/mongodb-proxy-portal:latest\n```\n\n### Using Docker Compose\n\nCreate a `docker-compose.yml` file with the following content:\n\n```yaml\nversion: '3.8'\n\nservices:\n  mongodb-proxy:\n    image: davinci19/mongo-proxy-portal:latest\n    container_name: Mongo_Portal\n    environment:\n      MONGO_HOST: your_mongo_host\n      MONGO_PORT: 27017\n      PROXY_PORT: 2222\n      DB_NAME: logs\n      COLLECTION_NAME: connections\n    ports:\n      - \"2222:2222\"\n```\n\nThen start the container with:\n\n```bash\ndocker-compose up -d\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavinci13%2Fmongodb-proxy-portal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavinci13%2Fmongodb-proxy-portal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavinci13%2Fmongodb-proxy-portal/lists"}