Run rsync daemon with the following config
[some_string]
path = /home/client/videos.domain.com
comment = videos
list = false
secrets file = /etc/rsyncd/rsyncd.secret
auth users = some_user
(some_string – any string appropriate for you , it will be used in rsync-URL, see below)
Add the following record to the /etc/rsyncd/rsyncd.secret
some_user:some_password
(change some_user and some_password to some values, you can use random password and login)
Change permissions to 600 on /etc/rsyncd/rsyncd.secret (chmod 600 /etc/rsyncd/rsyncd.secret)
Provide CDN-support with some_user:some_password values and rsync-URL
rsync://yourhost.example.com/some_string/
or
rsync:///some_string/
<IP> – IP address of your host