{"id":48985382,"url":"https://github.com/backrunner/misskey-media-proxy-worker","last_synced_at":"2026-04-18T12:11:25.459Z","repository":{"id":196526960,"uuid":"695768528","full_name":"backrunner/misskey-media-proxy-worker","owner":"backrunner","description":"A Cloudflare proxy worker for media files in Misskey","archived":false,"fork":false,"pushed_at":"2024-11-30T19:36:08.000Z","size":116,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-30T20:24:59.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/backrunner.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","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":"2023-09-24T06:52:14.000Z","updated_at":"2024-11-30T19:36:14.000Z","dependencies_parsed_at":"2024-10-19T03:00:00.467Z","dependency_job_id":"14baf985-efb2-44d3-ab94-c93592885bb2","html_url":"https://github.com/backrunner/misskey-media-proxy-worker","commit_stats":null,"previous_names":["backrunner/misskey-media-proxy-worker"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/backrunner/misskey-media-proxy-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backrunner%2Fmisskey-media-proxy-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backrunner%2Fmisskey-media-proxy-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backrunner%2Fmisskey-media-proxy-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backrunner%2Fmisskey-media-proxy-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/backrunner","download_url":"https://codeload.github.com/backrunner/misskey-media-proxy-worker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backrunner%2Fmisskey-media-proxy-worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31968161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":[],"created_at":"2026-04-18T12:11:24.682Z","updated_at":"2026-04-18T12:11:25.442Z","avatar_url":"https://github.com/backrunner.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# misskey-media-proxy-worker\n\nA media files proxy worker for [Misskey](https://github.com/misskey-dev/misskey).\n\n## Usage\n\n1. Set your config items via environment variables in the \".env\"\n2. Run `npm run deploy` to deploy your worker.\n\nor you can run `npm run build` to build the worker without deploying, and deploy it manually.\n\n## Features\n\n- More secure than the official one, can reduce the abusing.\n\n- Integrated cache and polish.\n\n## Config\n\nPlease use the environment variable to configure the proxy, you can configure them at Cloudflare's dashboard or in the `wrangler.toml` file.\n\n```toml\n[vars]\nALLOW_ORIGIN = \"https://pwp.space\"\nPROXY_USER_AGENT = \"\"\nTHIRD_PARTY_CLIENTS_USER_AGENT = \"\"\nVALIDATE_PATHNAME = true\nVALIDATE_SIGN = false\nVALIDATE_REFERER = false\nRETURN_EMPTY_PIC_WHEN_ERROR = false\nBLACK_LIST_DOMAIN = \"\"\nSTRIP_VIA_FOR_USER_AGENTS = \"\"\nBLOCKED_VIA_PSEUDO_NAMES = [\"misskey/media-proxy-worker\"]\n```\n\nTo set the `PROXY_KEY`, you can use the `wrangler secret put` command.\n\n```bash\nwrangler secret put PROXY_KEY [YOUR_PROXY_KEY]\n```\n\n### Options\n\n- `ALLOW_ORIGIN`: The allowed origin for CORS requests\n- `PROXY_USER_AGENT`: The User-Agent header to use when proxying requests\n- `THIRD_PARTY_CLIENTS_USER_AGENT`: Array of User-Agent strings for third-party clients\n- `VALIDATE_PATHNAME`: Whether to validate the pathname starts with '/proxy'\n- `VALIDATE_SIGN`: Whether to validate request signatures\n- `VALIDATE_REFERER`: Whether to validate the referer header\n- `VALIDATE_USER_AGENT`: Whether to validate the User-Agent header\n- `RETURN_EMPTY_PIC_WHEN_ERROR`: Whether to return an empty image on error\n- `BLACK_LIST_DOMAIN`: Array of blocked domains\n- `CACHE_MAX_AGE`: Maximum cache age in seconds\n- `CF_POLISH`: Cloudflare Polish setting ('lossy', 'lossless', or 'off')\n- `EXTRA_PROXY_HEADERS`: JSON object of additional headers to add to proxied requests\n- `TRANSPARENT_PROXY`: JSON object for transparent proxy configuration\n- `TRANSPARENT_PROXY_MODE`: Mode for transparent proxy ('path' or 'query')\n- `TRANSPARENT_PROXY_QUERY`: Query parameter name for transparent proxy\n- `STRIP_VIA_FOR_USER_AGENTS`: Array of User-Agent strings to strip Via header for\n- `BLOCKED_VIA_PSEUDO_NAMES`: Array of blocked Via header pseudo names\n- `PASS_USER_AGENT_FROM_REQUEST`: Whether to pass the User-Agent header from the request to the remote target\n\n## Why proxy requests need a proxy key and signature?\n\nSee this issue for more details:\n\nhttps://github.com/misskey-dev/media-proxy/issues/9\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackrunner%2Fmisskey-media-proxy-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbackrunner%2Fmisskey-media-proxy-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackrunner%2Fmisskey-media-proxy-worker/lists"}