moved ssl_stapling to main config
This commit is contained in:
parent
b926014bdf
commit
be5a9d8b8e
2 changed files with 3 additions and 5 deletions
|
|
@ -8,9 +8,9 @@ ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECD
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
||||||
add_header Strict-Transport-Security "max-age=15768000";
|
add_header Strict-Transport-Security "max-age=15768000" always;
|
||||||
|
|
||||||
# OCSP Stapling ---
|
# OCSP Stapling ---
|
||||||
# fetch OCSP records from URL in ssl_certificate and cache them
|
# fetch OCSP records from URL in ssl_certificate and cache them
|
||||||
#ssl_stapling on;
|
ssl_stapling_verify on;
|
||||||
#ssl_stapling_verify on;
|
ssl_stapling on;
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,5 @@ server {
|
||||||
{% if vhost.letsencrypt|d(False) %}
|
{% if vhost.letsencrypt|d(False) %}
|
||||||
ssl_certificate /etc/ssl/nginx_{{ vhost_name }}.chain.crt;
|
ssl_certificate /etc/ssl/nginx_{{ vhost_name }}.chain.crt;
|
||||||
ssl_certificate_key /etc/ssl/private/nginx_{{ vhost_name }}.key;
|
ssl_certificate_key /etc/ssl/private/nginx_{{ vhost_name }}.key;
|
||||||
ssl_stapling_verify on;
|
|
||||||
ssl_stapling on;
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue