{"id":22221471,"url":"https://github.com/amasecocoa/media-proxy","last_synced_at":"2025-03-25T07:43:12.027Z","repository":{"id":254991389,"uuid":"848195054","full_name":"AmaseCocoa/media-proxy","owner":"AmaseCocoa","description":"Pythonで作成されたMedia Proxyの代替実装","archived":false,"fork":false,"pushed_at":"2024-09-19T07:01:54.000Z","size":81,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T07:14:23.724Z","etag":null,"topics":["media-proxy","misskey"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/amasecocoa/media-proxy","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/AmaseCocoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-27T10:06:36.000Z","updated_at":"2024-09-19T07:01:57.000Z","dependencies_parsed_at":"2024-08-27T11:29:11.021Z","dependency_job_id":"6234ef04-1994-47b1-a558-26890c9294ae","html_url":"https://github.com/AmaseCocoa/media-proxy","commit_stats":null,"previous_names":["amasecocoa/media-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fmedia-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fmedia-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fmedia-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fmedia-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmaseCocoa","download_url":"https://codeload.github.com/AmaseCocoa/media-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245422921,"owners_count":20612725,"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":["media-proxy","misskey"],"created_at":"2024-12-02T23:13:37.522Z","updated_at":"2025-03-25T07:43:12.006Z","avatar_url":"https://github.com/AmaseCocoa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Media-Proxy\nMedia-Proxy is a lightweight media proxy for Misskey servers. It is approximately 3KB in size and provides minimal functionality for proxying media.\n\n## Features\n\n- Lightweight and fast\n- Easy to set up\n- Responses are cached for a fixed period of time\n- Docker support\n\n## Install\n### Install from Source \n1. Clone the repository.\n```sh\ngit clone https://github.com/AmaseCocoa/media-proxy.git\ncd media-proxy\n```\n\n2. Install the required dependencies.\n```sh\npip install -r requirements.txt\n```\n\n### Install With Docker \n\n1. Pull the Docker image.\n```sh\ndocker pull amasecocoa/media-proxy:latest\n```\n\n2. Start the container.\n```sh\ndocker run -d --name media-proxy -p 3003:3003 -e PORT=3030 amasecocoa/media-proxy:latest\n```\n\n## How To Use\n### Start Server\n\nStart the server with the following command.\n\n```sh\npython server.py\n````\n\n### Configuration\n\nUse environment variables to configure settings.\n\n- `PORT`: The port number the server listens on (default: 3003)\n- `EXPIRES`: The length of time to cache media (default: 86400 (seconds))\n~~`CHUNK_SIZE`: The chunk size of the file to be read at a time. (default: 1048576 (bytes))~~ Discontinued in 0.3.0\n\nExample:\n\n```sh\nexport PORT=8000\nexport EXPIRES=86400\n```\n\n### Example\n\nTo send an image request to a media proxy, use the following URL format:\n```\nhttp://host/proxy/image.webp?url=https://example.com/image.png\n```\n\nThe `url` parameter is the URL of the image you wish to proxy.\n\n## Develop\n\nTo set up the development environment, do the following: \n\n1. Install the dependencies.\n```sh\npdm install\n``` \n\n2. Start the server.\n```sh\npdm run python server.py\n```\n\n## License\n\nThis project is released under the MIT License. See the [LICENSE](LICENSE) file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famasecocoa%2Fmedia-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famasecocoa%2Fmedia-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famasecocoa%2Fmedia-proxy/lists"}