mirror of https://github.com/zulip/zulip.git
puppet: Specify CentOS specific path to ca certificates for nginx.
This commit is contained in:
parent
d5284b177e
commit
70dfb423e4
|
@ -58,6 +58,11 @@ class zulip::nginx {
|
|||
source => 'puppet:///modules/zulip/nginx/dhparam.pem',
|
||||
}
|
||||
|
||||
if $::osfamily == 'debian' {
|
||||
$ca_crt = '/etc/ssl/certs/ca-certificates.crt'
|
||||
} else {
|
||||
$ca_crt = '/etc/pki/tls/certs/ca-bundle.crt'
|
||||
}
|
||||
file { '/etc/nginx/nginx.conf':
|
||||
ensure => file,
|
||||
require => Package[$zulip::common::nginx, 'ca-certificates'],
|
||||
|
|
|
@ -62,7 +62,7 @@ http {
|
|||
ssl_prefer_server_ciphers off;
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
|
||||
ssl_trusted_certificate <%= @ca_crt %>;
|
||||
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
|
Loading…
Reference in New Issue