{"id":20269353,"url":"https://github.com/nerdneilsfield/deeplx-load-balancer","last_synced_at":"2025-06-15T21:33:42.351Z","repository":{"id":209294018,"uuid":"722984124","full_name":"nerdneilsfield/deeplx-load-balancer","owner":"nerdneilsfield","description":"A load balance server for deeplx service , 用于 deeplx 的负载均衡翻译服务","archived":false,"fork":false,"pushed_at":"2023-12-31T08:13:17.000Z","size":17,"stargazers_count":21,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T04:02:00.667Z","etag":null,"topics":["deepl","deeplx"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nerdneilsfield.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":"2023-11-24T12:05:42.000Z","updated_at":"2025-01-18T05:03:23.000Z","dependencies_parsed_at":"2024-06-21T19:12:30.805Z","dependency_job_id":"4456c244-d8d7-4d90-9d9b-8ec1c3d7ded9","html_url":"https://github.com/nerdneilsfield/deeplx-load-balancer","commit_stats":null,"previous_names":["nerdneilsfield/deeplx-load-balancer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nerdneilsfield/deeplx-load-balancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdneilsfield%2Fdeeplx-load-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdneilsfield%2Fdeeplx-load-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdneilsfield%2Fdeeplx-load-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdneilsfield%2Fdeeplx-load-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdneilsfield","download_url":"https://codeload.github.com/nerdneilsfield/deeplx-load-balancer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdneilsfield%2Fdeeplx-load-balancer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260053340,"owners_count":22951858,"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":["deepl","deeplx"],"created_at":"2024-11-14T12:24:39.432Z","updated_at":"2025-06-15T21:33:42.327Z","avatar_url":"https://github.com/nerdneilsfield.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Load Balancer for deeplx Translation Services\n# 用于 deeplx 的负载均衡翻译服务\n\n\nThis program is a load balancer designed to handle requests across multiple deeplx translation service endpoints, configured via a JSON file.\n\n这个程序是一个设计用于处理跨多个 deeplx 翻译服务端点的请求的负载均衡器，通过 JSON 文件进行配置。\n\n## Features | 功能特点\n- Configuration through a JSON file\n- Dynamic endpoint handling\n- Automatic retry mechanism\n- 通过 JSON 文件进行配置\n- 动态端点处理\n- 自动重试机制\n\n## Configuration | 配置\nCreate a config.json file with your endpoints and tokens:\n创建一个包含您的端点和令牌的 config.json 文件：\n\n```json\n{\n    \"token\": \"global_token (if any)\",\n    \"endpoints\": [\n        {\n            \"url\": \"http://example1.com\",\n            \"token\": \"token1\"\n        },\n        {\n            \"url\": \"http://example2.com\",\n            \"token\": \"token2\"\n        }\n    ]\n}\n```\n\n## Usage | 使用方法\n\n### Direct run the program | 直接运行程序\n\nRun the program with the -config flag followed by your configuration file path.\n\n使用 -config 标志运行程序，后面跟上您的配置文件路径。\n\n```bash\ngo run main.go -config ./config.json\n```\n\n### Using Docker | 基于 Docker 进行使用\n\nAn official docker image was provided: `nerdneils/deeplx-load-balancer`.\n提供了一个官方的 docker 镜像: `nerdneils/deeplx-load-balancer`。\n\n```bash\ndocker run -it -v ${PWD}/config.json:/etc/deeplx-load-balancer-config.json -p 1188:1188 nerdneils/deeplx-load-balancer\n```\n\n### Using docker-compose | 基于 docker-compose 进行使用\n\nAn `docker-compose.yml` file for using Traefik was provided, you could download it from [docker-compose.yml](https://github.com/nerdneilsfield/deeplx-load-balancer/blob/master/docker-compose.yml).\n\n提供了一个基于 `traefik` 的 `docker-compose.yml` 文件，可以在这里下载 [docker-compose.yml](https://github.com/nerdneilsfield/deeplx-load-balancer/blob/master/docker-compose.yml)。\n\n\n## Contributing | 贡献\nContributions, issues, and feature requests are welcome. Feel free to check issues page.\n\n欢迎提供贡献、问题和功能请求。请随时查看问题页面。\n\n## License\n\n```\nMIT License\nCopyright (c) 2023 DengQi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdneilsfield%2Fdeeplx-load-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdneilsfield%2Fdeeplx-load-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdneilsfield%2Fdeeplx-load-balancer/lists"}