Fix the vhost template
hosts must be defined in the main config file
This commit is contained in:
parent
72cc6342f1
commit
c2b2b6f08b
@ -6,6 +6,11 @@ log_rotate_count: 1
|
|||||||
|
|
||||||
log_rate_limit: 100
|
log_rate_limit: 100
|
||||||
|
|
||||||
|
hosts:
|
||||||
|
<% @hosts.each do |host| -%>
|
||||||
|
- "<%= host[:name] %>"
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
<% @hosts.each do |host| -%>
|
<% @hosts.each do |host| -%>
|
||||||
include_config_file: "/opt/ejabberd/conf/<%= host[:name] %>.yml"
|
include_config_file: "/opt/ejabberd/conf/<%= host[:name] %>.yml"
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
# Generated by Chef for <%= @host[:name] %>
|
# Generated by Chef for <%= @host[:name] %>
|
||||||
hosts:
|
|
||||||
- "<%= @host[:name] %>"
|
|
||||||
|
|
||||||
<% if File.exist?("/opt/ejabberd/conf/#{@host[:name]}.crt") && File.exist?("/opt/ejabberd/conf/#{@host[:name]}.key") -%>
|
<% if File.exist?("/opt/ejabberd/conf/#{@host[:name]}.crt") && File.exist?("/opt/ejabberd/conf/#{@host[:name]}.key") -%>
|
||||||
certfiles:
|
certfiles:
|
||||||
- "/opt/ejabberd/conf/<%= @host[:name] %>.crt"
|
- "/opt/ejabberd/conf/<%= @host[:name] %>.crt"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user