Fix the config file when no TLS certs exist
This commit is contained in:
parent
bd720b0189
commit
0be63e5935
@ -24,19 +24,18 @@ host_config:
|
||||
sql_username: "ejabberd"
|
||||
sql_password: "<%= @pgsql_password %>"
|
||||
|
||||
<% if (File.exist?("/opt/ejabberd/conf/kosmos.org.crt") && File.exist?("/opt/ejabberd/conf/kosmos.org.key")) ||
|
||||
(File.exist?("/opt/ejabberd/conf/5apps.com.crt") && File.exist?("/opt/ejabberd/conf/5apps.com.key")) -%>
|
||||
certfiles:
|
||||
<% if File.exist?("/opt/ejabberd/conf/kosmos.org.crt") -%>
|
||||
<% if File.exist?("/opt/ejabberd/conf/kosmos.org.crt") && File.exist?("/opt/ejabberd/conf/kosmos.org.key") -%>
|
||||
- "/opt/ejabberd/conf/kosmos.org.crt"
|
||||
<% end -%>
|
||||
<% if File.exist?("/opt/ejabberd/conf/kosmos.org.key") -%>
|
||||
- "/opt/ejabberd/conf/kosmos.org.key"
|
||||
<% end -%>
|
||||
<% if File.exist?("/opt/ejabberd/conf/5apps.com.crt") -%>
|
||||
<% if File.exist?("/opt/ejabberd/conf/5apps.com.crt") && File.exist?("/opt/ejabberd/conf/5apps.com.key") -%>
|
||||
- "/opt/ejabberd/conf/5apps.com.crt"
|
||||
<% end -%>
|
||||
<% if File.exist?("/opt/ejabberd/conf/5apps.com.key") -%>
|
||||
- "/opt/ejabberd/conf/5apps.com.key"
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
ca_file: "/opt/ejabberd/conf/cacert.pem"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user