{"id":27772304,"url":"https://github.com/macalistervadim/upload_images","last_synced_at":"2026-05-10T19:03:13.410Z","repository":{"id":290151461,"uuid":"973508713","full_name":"macalistervadim/upload_images","owner":"macalistervadim","description":"Project for uploading files via FastAPI + MinIO to the public cloud with the ability to return public links.","archived":false,"fork":false,"pushed_at":"2025-04-27T10:15:50.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T23:58:29.779Z","etag":null,"topics":["docker","fastapi","minio","restapi"],"latest_commit_sha":null,"homepage":"https://api.macalistervadim.site/docs/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macalistervadim.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}},"created_at":"2025-04-27T06:19:31.000Z","updated_at":"2025-04-27T10:20:02.000Z","dependencies_parsed_at":"2025-04-29T23:58:31.821Z","dependency_job_id":"5a56b92f-5be4-41ea-a2dd-6bb8a7f10291","html_url":"https://github.com/macalistervadim/upload_images","commit_stats":null,"previous_names":["macalistervadim/upload_images"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/macalistervadim/upload_images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macalistervadim%2Fupload_images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macalistervadim%2Fupload_images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macalistervadim%2Fupload_images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macalistervadim%2Fupload_images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macalistervadim","download_url":"https://codeload.github.com/macalistervadim/upload_images/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macalistervadim%2Fupload_images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32867988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","fastapi","minio","restapi"],"created_at":"2025-04-29T23:58:28.244Z","updated_at":"2026-05-10T19:03:13.394Z","avatar_url":"https://github.com/macalistervadim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 MinIO Upload Backend\n\n[![Python](https://img.shields.io/badge/Python-3.13-blue.svg)](https://www.python.org/)\n[![FastAPI](https://img.shields.io/badge/FastAPI-0.115.12-green.svg)](https://fastapi.tiangolo.com/)\n[![Docker](https://img.shields.io/badge/Docker-ready-blue.svg)](https://www.docker.com/)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n---\n\nПроект для загрузки файлов через FastAPI + MinIO в публичное облако с возможностью отдачи публичных ссылок.\n\n---\n\n## 🛠️ Используемые технологии\n- **FastAPI**: современный веб-фреймворк для создания API на Python.\n- **MinIO**: высокопроизводительное решение для хранения объектов, совместимое с Amazon S3.\n- **Docker**: платформа для автоматизации развертывания приложений в контейнерах.\n- **Docker Compose**: инструмент для определения и запуска многоконтейнерных Docker приложений.\n\n\n## 📦 Быстрый старт\n\n1. **Клонируем репозиторий:**\n   ```bash\n   git clone https://github.com/macalistervadim/upload_images\n   cd upload_images\n\n\n2. **Создаем файл `.env` в корне проекта:**\n   ```bash\n   cp .env.example .env\n   ```\n\n3. **Запускаем проект:**\n   ```bash\n    docker-compose up -d\n    ```\n\n4. **Проверяем работу API:**\n    ```bash\n    curl -X POST \"http://localhost:8000/upload\" -F \"file=@path/to/your/file.jpg\"\n    ```\n   \n5. **Сервисы:**\n    - **FastAPI**: [http://localhost:8000/docs](http://localhost:8000/docs)\n    - **MinIO**: [http://localhost:9000](http://localhost:9000) (логин: `из .env`, пароль: `из .env`)\n\n## Как пользоваться API\n1. **Загрузка файла:**\n   - Метод: `POST`\n   - URL: `/upload`\n   - Параметры:\n     - `file`: файл для загрузки\n   - Ответ:\n     ```json\n     {\n       \"url\": \"https://your-minio-url/bucket-name/file-name\"\n     }\n     ```\n   Пример запроса через curl:\n   ```bash\n   curl -X 'POST' \\\n     'http://\u003cyour-server-ip\u003e:8000/upload/' \\\n     -H 'accept: application/json' \\\n     -H 'Content-Type: multipart/form-data' \\\n     -F 'file=@yourfile.jpg'\n   ```\n   Ответ:\n    ```json\n   {\n        \"url\": \"http://\u003cyour-server-ip\u003e:9000/images/yourfile.jpg\"\n    }\n    ```\n\n## 📄 Лицензия\nЭтот проект лицензирован под MIT License. Пожалуйста, ознакомьтесь с файлом [LICENSE](LICENSE) для получения подробной информации.\n\n## 📧 Контакты\nЕсли у вас есть вопросы или предложения, не стесняйтесь обращаться в **[issues](https://github.com/macalistervadim/upload_images/issues)**\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacalistervadim%2Fupload_images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacalistervadim%2Fupload_images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacalistervadim%2Fupload_images/lists"}