Make max connections optional
diff --git a/rsync/conf/rsyncd.conf b/rsync/conf/rsyncd.conf
index dcfdae6..2ff5e9c 100644
--- a/rsync/conf/rsyncd.conf
+++ b/rsync/conf/rsyncd.conf
@@ -8,8 +8,10 @@
 
 {%- for name, module in server.module.iteritems() %}
 [{{ name}}]
+{%- if module.max_connections is defined %}
 max connections = {{ module.max_connections }}
+{%- endif %}
 path = {{ module.path }}
-read only = {{ module.read_only }}
+read only = {{ module.get('read_only', True) }}
 lock file = /var/lock/rsync_{{ name }}.lock
 {%- endfor %}