mirror of https://github.com/zulip/zulip.git
puppet: Abstract out ssl certs and private keys dirs.
This commit is contained in:
parent
91348a6aee
commit
bf65f86a0b
|
@ -6,6 +6,10 @@ class zulip::app_frontend {
|
|||
|
||||
$nginx_http_only = zulipconf('application_server', 'http_only', undef)
|
||||
$no_serve_uploads = zulipconf('application_server', 'no_serve_uploads', undef)
|
||||
$ssl_dir = $::osfamily ? {
|
||||
'debian' => '/etc/ssl',
|
||||
'redhat' => '/etc/pki/tls',
|
||||
}
|
||||
file { '/etc/nginx/sites-available/zulip-enterprise':
|
||||
ensure => file,
|
||||
require => Package[$zulip::common::nginx],
|
||||
|
|
|
@ -15,8 +15,8 @@ server {
|
|||
listen 443;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate /etc/ssl/certs/zulip.combined-chain.crt;
|
||||
ssl_certificate_key /etc/ssl/private/zulip.key;
|
||||
ssl_certificate <%= @ssl_dir %>/certs/zulip.combined-chain.crt;
|
||||
ssl_certificate_key <%= @ssl_dir %>/private/zulip.key;
|
||||
<% end -%>
|
||||
|
||||
<% if @no_serve_uploads == '' -%>
|
||||
|
|
Loading…
Reference in New Issue