Giter Club home page Giter Club logo

rsync-proxy's Introduction

rsync-proxy

rsync-proxy 可以根据 module name 反向代理不同 host 上的 rsync daemon 以减轻单台主机上的 IO 压力。

1. 安装

根据 OS 到 release 页面里下载相应的 tarball。下载并 cd 到解压出来的目录后:

1.1 创建配置文件

# mkdir /etc/rsync-proxy
# cp ./cofig.example.toml /etc/rsync-proxy/config.toml
# vim /etc/rsync-proxy/config.toml # 根据实际情况修改配置

1.2 创建 systemd service

# cp ./rsync-proxy.service /etc/systemd/system/
# cp ./rsync-proxy /usr/local/bin/
# systemctl enable --now rsync-proxy

2. 配置

[proxy]
# 可选,设置访问时输出的 motd 内容(默认值为空字符串,即不输出)
motd = "Served by rsync-proxy (https://github.com/ustclug/rsync-proxy)"

# "u1" 表示 upstream 的名字,不能重复
[upstreams.u1]
host = "127.0.0.1"
port = 1234
# 该 upstream 下所有的 module,不能重复(即便是在不同的 upstream)
modules = ["foo"]

[upstreams.u2]
host = "example.com"
port = 1235
modules = ["bar"]

rsync-proxy's People

Contributors

knight42 avatar taoky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.