{"id":48755926,"url":"https://github.com/futureppo/airforce-filtration","last_synced_at":"2026-04-13T02:01:59.740Z","repository":{"id":348204588,"uuid":"1180032301","full_name":"Futureppo/airforce-filtration","owner":"Futureppo","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-31T07:08:06.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-31T09:23:43.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Futureppo.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-12T16:21:29.000Z","updated_at":"2026-03-31T07:08:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Futureppo/airforce-filtration","commit_stats":null,"previous_names":["futureppo/airforce-filtration"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Futureppo/airforce-filtration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fairforce-filtration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fairforce-filtration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fairforce-filtration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fairforce-filtration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Futureppo","download_url":"https://codeload.github.com/Futureppo/airforce-filtration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Futureppo%2Fairforce-filtration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"online","status_checked_at":"2026-04-13T02:00:06.623Z","response_time":93,"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-13T02:01:07.433Z","updated_at":"2026-04-13T02:01:59.732Z","avatar_url":"https://github.com/Futureppo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Airforce Filtration Proxy\n\nAPI 请求过滤代理\u0026负载均衡。\n\n\n## 快速开始\n\n### 1. 配置\n\n复制配置文件模板：\n\n```bash\ncp .env.example .env\n```\n\n编辑 `.env` 文件：\n\n```env\n# HTTP 代理（可选）\nPROXY_URL=http://ip:port\n\n# 其他配置保持默认即可\nLISTEN_PORT=6777\nMAX_RETRIES=3\n```\n\n### 2. Docker Compose 部署\n\n```bash\ndocker compose up -d\n```\n\n### 3. 直接运行\n\n```bash\ngo build -o airforce-filtration .\n./airforce-filtration\n```\n\n## 使用方式\n\n在 NewAPI 中将渠道的上游地址设置为：\n\n```\nhttp://your-server-ip:6777\n```\n\n## 配置说明\n\n所有配置均为可选，通过 `.env` 文件设置：\n\n| 环境变量         | 默认值                 | 说明                                 |\n| ---------------- | ---------------------- | ------------------------------------ |\n| `PROXY_URL`      | 空（直连）             | HTTP 代理地址，格式 `http://ip:port` |\n| `UPSTREAM_URL`   | `https://api.airforce` | 上游 API 地址                        |\n| `LISTEN_PORT`    | `6777`                 | 监听端口                             |\n| `MAX_RETRIES`    | `3`                    | 429/网络错误最大重试次数             |\n| `AD_KEYWORDS`    | 内置关键词             | 自定义广告关键词，`\\|` 分隔          |\n| `AD_BUFFER_SIZE` | `400`                  | 流式响应尾部缓冲区大小（字符）       |\n\n## License\n\nMIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutureppo%2Fairforce-filtration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffutureppo%2Fairforce-filtration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutureppo%2Fairforce-filtration/lists"}