Merge pull request #1 from tcpcloud/add-timeout
add timeout option
diff --git a/README.rst b/README.rst
index 895dace..dd6ba33 100644
--- a/README.rst
+++ b/README.rst
@@ -15,6 +15,7 @@
max_connections: 2
path: /srv/rsync
read_only: False
+ timeout: 300
## Read more
diff --git a/rsync/files/rsyncd.conf b/rsync/files/rsyncd.conf
index 078f5c5..e5d493a 100644
--- a/rsync/files/rsyncd.conf
+++ b/rsync/files/rsyncd.conf
@@ -7,6 +7,9 @@
{%- if server.bind is defined %}
address = {{ server.bind.address }}
{%- endif %}
+{%- if server.timeout is defined %}
+timeout = {{ server.timeout }}
+{%- endif %}
{%- for name, module in server.module.iteritems() %}
[{{ name}}]
@@ -33,3 +36,4 @@
hosts deny = *
{%- endif %}
{%- endfor %}
+