diff --git a/templates/050-swift-storage.conf b/templates/050-swift-storage.conf index 7a1ae80..f187a97 100644 --- a/templates/050-swift-storage.conf +++ b/templates/050-swift-storage.conf @@ -5,7 +5,9 @@ max connections = {{ account_max_connections }} path = /srv/node/ read only = false lock file = /var/lock/account.lock +{% if allowed_hosts -%} hosts allow = {{ allowed_hosts }} +{% endif %} [container] uid = swift @@ -14,7 +16,9 @@ max connections = {{ container_max_connections }} path = /srv/node/ read only = false lock file = /var/lock/container.lock +{% if allowed_hosts -%} hosts allow = {{ allowed_hosts }} +{% endif %} [object] uid = swift