mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-21 19:29:22 +08:00
@@ -30,7 +30,7 @@ server {<!--
|
|||||||
ssl_certificate_key {{ getSslCertificateKey(_site) }};<!--
|
ssl_certificate_key {{ getSslCertificateKey(_site) }};<!--
|
||||||
|
|
||||||
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt(_site)">
|
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt(_site)">
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/{{ _domain }}/fullchain.pem;</span></span><!--
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ _domain }}/chain.pem;</span></span><!--
|
||||||
|
|
||||||
✔ HSTS --><span ng-if="!hasCommonHSTS() && isHSTS(_site)">
|
✔ HSTS --><span ng-if="!hasCommonHSTS() && isHSTS(_site)">
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ server {
|
|||||||
ssl_certificate_key {{ getSslCertificateKey(_site) }};<!--
|
ssl_certificate_key {{ getSslCertificateKey(_site) }};<!--
|
||||||
|
|
||||||
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt(_site)">
|
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt(_site)">
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/{{ _domain }}/fullchain.pem;</span></span>
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ _domain }}/chain.pem;</span></span>
|
||||||
|
|
||||||
# disable access_log
|
# disable access_log
|
||||||
access_log off;<!--
|
access_log off;<!--
|
||||||
@@ -219,7 +219,7 @@ server {
|
|||||||
ssl_certificate_key {{ getSslCertificateKey(_site) }};<!--
|
ssl_certificate_key {{ getSslCertificateKey(_site) }};<!--
|
||||||
|
|
||||||
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt(_site)">
|
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt(_site)">
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/{{ _domain }}/fullchain.pem;</span></span>
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ _domain }}/chain.pem;</span></span>
|
||||||
|
|
||||||
return 301 http{{ isHTTPS() ? 's' : '' }}://{{ isWWW() ? 'www.' : '' }}{{ _domain }}$request_uri;
|
return 301 http{{ isHTTPS() ? 's' : '' }}://{{ isWWW() ? 'www.' : '' }}{{ _domain }}$request_uri;
|
||||||
}</span><!--
|
}</span><!--
|
||||||
|
Reference in New Issue
Block a user