Commit 41a39b85 authored by omega8cc's avatar omega8cc

Nginx: Use ssl_chain_cert if available (via hosting_le)

parent 3b1a198f
......@@ -45,9 +45,12 @@ server {
}
?>
ssl on;
ssl_certificate <?php print $ssl_cert; ?>;
ssl_certificate_key <?php print $ssl_cert_key; ?>;
keepalive_timeout 70;
<?php if (!empty($ssl_chain_cert)) : ?>
ssl_certificate <?php print $ssl_chain_cert; ?>;
<?php else: ?>
ssl_certificate <?php print $ssl_cert; ?>;
<?php endif; ?>
return 301 $scheme://<?php print $this->redirection; ?>$request_uri;
}
<?php endforeach; ?>
......@@ -106,10 +109,13 @@ server {
} ?>;
root <?php print "{$this->root}"; ?>;
ssl on;
ssl_certificate <?php print $ssl_cert; ?>;
ssl_certificate_key <?php print $ssl_cert_key; ?>;
keepalive_timeout 70;
<?php print $extra_config; ?>
<?php if (!empty($ssl_chain_cert)) : ?>
ssl_certificate <?php print $ssl_chain_cert; ?>;
<?php else: ?>
ssl_certificate <?php print $ssl_cert; ?>;
<?php endif; ?>
<?php print $extra_config; ?>
include <?php print $server->include_path; ?>/nginx_vhost_common.conf;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment