diff --git a/templates/default/rgw.conf.erb b/templates/default/rgw.conf.erb index b87d511..322fb01 100644 --- a/templates/default/rgw.conf.erb +++ b/templates/default/rgw.conf.erb @@ -9,6 +9,11 @@ LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{Use > ServerName <%= @params[:server_name] %> +<% if node['ceph']['radosgw']['api_aliases'] -%> +<% node['ceph']['radosgw']['api_aliases'].each do |api_alias| -%> + ServerAlias <%= api_alias %> +<% end -%> +<% end -%> ServerAdmin <%= node["ceph"]["radosgw"]["admin_email"] %> DocumentRoot /var/www/