Skip to content

Commit 0a28715

Browse files
author
Pierre Paul Lefebvre
committed
Adding option to disable the ssl_session_cache
1 parent 56f16fb commit 0a28715

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ nginx_drupal_flv_streaming: true
2424
nginx_drupal_mp4_streaming: true
2525
nginx_drupal_http_core:
2626
client_max_body_size: "10m"
27+
ssl_session_cache: true
2728
nginx_drupal_upstream_servers: ["unix:/var/run/php-fpm.sock", "php-fpm-zwei.sock"]
2829
nginx_drupal_upstream_backup_servers: ["unix:/var/run/php-fpm-bkp.sock"]
2930
nginx_drupal_sites: none
3031
nginx_drupal_http_pre_includes: []
31-
nginx_drupal_http_post_includes: []
32+
nginx_drupal_http_post_includes: []

templates/nginx.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ http {
100100
## Hide the Nginx version number.
101101
server_tokens off;
102102

103+
{% if nginx_drupal_http_core.ssl_session_cache %}
103104
## Use a SSL/TLS cache for SSL session resume. This needs to be
104105
## here (in this context, for session resumption to work. See this
105106
## thread on the Nginx mailing list:
106107
## http://nginx.org/pipermail/nginx/2010-November/023736.html.
107108
ssl_session_cache shared:SSL:30m;
108109
ssl_session_timeout 1d;
110+
{% endif %}
109111

110112
## The server dictates the choice of cipher suites.
111113
ssl_prefer_server_ciphers on;

templates/sites-available/drupal-site.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ server {
131131
{% endif %}
132132

133133
{% if item.https is defined %}
134-
{% if item.alternate_server_name %}
134+
{% if item.alternate_server_name is defined %}
135135
## Return (no rewrite) server block.
136136
server {
137137
## This is to avoid the spurious if for sub-domain name

0 commit comments

Comments
 (0)