{"id":22437240,"url":"https://github.com/ustclug/rsync-proxy","last_synced_at":"2025-08-01T15:32:03.847Z","repository":{"id":41956829,"uuid":"274069286","full_name":"ustclug/rsync-proxy","owner":"ustclug","description":"根据 module name 反向代理不同 host 上的 rsync daemon 以减轻单台主机上的 IO 压力","archived":false,"fork":false,"pushed_at":"2024-08-01T17:58:51.000Z","size":91,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-01T20:14:36.959Z","etag":null,"topics":["proxy","rsync"],"latest_commit_sha":null,"homepage":"","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/ustclug.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}},"created_at":"2020-06-22T07:29:36.000Z","updated_at":"2024-08-01T17:58:54.000Z","dependencies_parsed_at":"2024-06-19T06:29:26.150Z","dependency_job_id":null,"html_url":"https://github.com/ustclug/rsync-proxy","commit_stats":{"total_commits":78,"total_committers":4,"mean_commits":19.5,"dds":0.5512820512820513,"last_synced_commit":"211b8dd40fd1e032c4f3b13f1b448b19dd05c6b3"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Frsync-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Frsync-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Frsync-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Frsync-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ustclug","download_url":"https://codeload.github.com/ustclug/rsync-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228389156,"owners_count":17912189,"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":["proxy","rsync"],"created_at":"2024-12-06T00:12:14.812Z","updated_at":"2024-12-06T00:12:15.292Z","avatar_url":"https://github.com/ustclug.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rsync-proxy ![](https://github.com/ustclug/rsync-proxy/workflows/Go/badge.svg)\n\nrsync-proxy 可以根据 module name 反向代理不同 host 上的 rsync daemon 以减轻单台主机上的 IO 压力。\n\n# 安装\n\n根据 OS 到 [release](https://github.com/ustclug/rsync-proxy/releases) 页面里下载相应的 tarball。下载并 cd 到解压出来的目录后：\n\n## 创建配置文件\n\n```shell\nmkdir /etc/rsync-proxy\ncp config.example.toml /etc/rsync-proxy/config.toml\nvim /etc/rsync-proxy/config.toml  # 根据实际情况修改配置\n```\n\n注意：由于技术原因，`listen` 和 `listen_http` 在重新载入配置文件时不会更新。如果需要更新这些设置，请重启进程。\n\n## 创建 systemd service\n\n```shell\ncp rsync-proxy.service /etc/systemd/system/\ncp rsync-proxy /usr/local/bin/\nsystemctl enable --now rsync-proxy.service\n```\n\n## 使用 logrotate 滚动日志\n\n```\n/var/log/rsync-proxy/*.log\n{\n    create 0644 nobody nogroup\n    daily\n    size 100M\n    rotate 200\n    dateext\n    compress\n    notifempty\n    missingok\n\n    postrotate\n        systemctl reload rsync-proxy.service\n    endscript\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustclug%2Frsync-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustclug%2Frsync-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustclug%2Frsync-proxy/lists"}