{"id":26506306,"url":"https://github.com/ptrvsrg/cache-proxy","last_synced_at":"2025-03-20T22:26:42.921Z","repository":{"id":215503428,"uuid":"739097604","full_name":"ptrvsrg/cache-proxy","owner":"ptrvsrg","description":"Многопоточный кеширующий прокси","archived":false,"fork":false,"pushed_at":"2024-01-09T05:10:27.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-09T23:26:16.133Z","etag":null,"topics":["c","cache","docker","http","http-proxy","logger","thread-pool"],"latest_commit_sha":null,"homepage":"","language":"C","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/ptrvsrg.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}},"created_at":"2024-01-04T19:07:22.000Z","updated_at":"2024-01-06T17:17:58.000Z","dependencies_parsed_at":"2024-01-08T23:26:05.020Z","dependency_job_id":null,"html_url":"https://github.com/ptrvsrg/cache-proxy","commit_stats":null,"previous_names":["ptrvsrg/cache-proxy"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrvsrg%2Fcache-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrvsrg%2Fcache-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrvsrg%2Fcache-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrvsrg%2Fcache-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptrvsrg","download_url":"https://codeload.github.com/ptrvsrg/cache-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244702476,"owners_count":20495915,"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","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":["c","cache","docker","http","http-proxy","logger","thread-pool"],"created_at":"2025-03-20T22:26:42.463Z","updated_at":"2025-03-20T22:26:42.910Z","avatar_url":"https://github.com/ptrvsrg.png","language":"C","readme":"# Многопоточный кеширующий прокси\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/ptrvsrg/cache-proxy/graphs/contributors\"\u003e\n        \u003cimg alt=\"GitHub contributors\" src=\"https://img.shields.io/github/contributors/ptrvsrg/cache-proxy?style=flat\u0026label=Contributors\u0026labelColor=222222\u0026color=77D4FC\"/\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://github.com/ptrvsrg/cache-proxy/forks\"\u003e\n        \u003cimg alt=\"GitHub forks\" src=\"https://img.shields.io/github/forks/ptrvsrg/cache-proxy?style=flat\u0026label=Forks\u0026labelColor=222222\u0026color=77D4FC\"/\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://github.com/ptrvsrg/cache-proxy/stargazers\"\u003e\n        \u003cimg alt=\"GitHub Repo stars\" src=\"https://img.shields.io/github/stars/ptrvsrg/cache-proxy?style=flat\u0026label=Stars\u0026labelColor=222222\u0026color=77D4FC\"/\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://github.com/ptrvsrg/cache-proxy/issues\"\u003e\n        \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/ptrvsrg/cache-proxy?style=flat\u0026label=Issues\u0026labelColor=222222\u0026color=77D4FC\"/\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://github.com/ptrvsrg/cache-proxy/pulls\"\u003e\n        \u003cimg alt=\"GitHub pull requests\" src=\"https://img.shields.io/github/issues-pr/ptrvsrg/cache-proxy?style=flat\u0026label=Pull%20Requests\u0026labelColor=222222\u0026color=77D4FC\"/\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n\n## Установка и настройка\n\n### Вручную\n\n1. Убедитесь, что у вас установлен Make и GCC;\n2. Клонируйте репозиторий на свою локальную машину;\n3. Соберите программу при помощи команды:\n\n    ```shell\n    make build\n    ```\n\n4. Установите переменные среды:\n\n   `CACHE_PROXY_LOG_LEVEL=\u003cALL|TRACE|DEBUG|INFO|WARNING|ERROR|FATAL|OFF\u003e` - уровень логгирования\n\n   `CACHE_PROXY_THREAD_POOL_SIZE=\u003cint\u003e` - количество обработчиков запросов клиентов\n\n   `CACHE_PROXY_CACHE_EXPIRED_TIME_MS=\u003cint\u003e` - время жизни записей в кеше в миллисекундах\n\n5. Запустите приложение:\n\n    ```shell\n   make run PORT=\u003cint\u003e\n   ```\n\n   или\n\n    ```shell\n   ./build/cache-proxy \u003cint\u003e\n   ```\n\n### Docker\n\n1. Убедитесь, что у вас установлен Docker;\n2. Запустите контейнер с помощью команды:\n\n    ```shell\n    sudo docker run \\\n    -d \\\n    -e CACHE_PROXY_LOG_LEVEL=\u003cALL|TRACE|DEBUG|INFO|WARNING|ERROR|FATAL|OFF\u003e \\\n    -e CACHE_PROXY_THREAD_POOL_SIZE=\u003cint\u003e \\\n    -e CACHE_PROXY_CACHE_EXPIRED_TIME_MS=\u003cint\u003e \\\n    -p \u003cint\u003e:8080 \\\n    --name \u003cstring\u003e \\\n    ptrvsrg/cache-proxy:latest\n    ```\n\n## Вклад в проект\n\nЕсли вы хотите внести свой вклад в проект, вы можете следовать этим шагам:\n\n1. Создайте форк этого репозитория.\n2. Внесите необходимые изменения.\n3. Создайте pull request, описывая ваши изменения.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrvsrg%2Fcache-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptrvsrg%2Fcache-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrvsrg%2Fcache-proxy/lists"}