Configuring your rsyncd.conf file is pretty straight forward. Here’s an example of 2 different modules. One is read-only and the other is not.
[media]
path = /var/www/media
comment = media
uid = rsync
gid = nobody
read only = no
list = no
hosts allow = media.mysite.com
[media-read]
path = /var/www/media
comment = media-read
uid = rsync
gid = nobody
read only = yes
list = no
hosts allow = mediaread.mysite.com