summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2017-08-05 14:13:57 +0200
committerRomain Porte <microjoe@microjoe.org>2017-08-05 14:13:57 +0200
commit307e6e76a1c256e9ecb29e2cd4b34b7f6c10291b (patch)
tree48b2e639cd96d8d7da9e45731c514748f1699c54
parent919972105fb9f379735ca4188bad03d3b8d1f7bb (diff)
downloadMicroJoe.nginx-staticwebsite-307e6e76a1c256e9ecb29e2cd4b34b7f6c10291b.tar.gz
MicroJoe.nginx-staticwebsite-307e6e76a1c256e9ecb29e2cd4b34b7f6c10291b.zip
Better http2 variable names
-rw-r--r--defaults/main.yml2
-rw-r--r--templates/nginx.j24
2 files changed, 3 insertions, 3 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index 42b4fcd..3f67b9d 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -7,7 +7,7 @@ nginx_rewrite_html: false
nginx_customize: ""
nginx_auth_file: ""
-enable_http2: true
+nginx_enable_http2: true
letsencrypt_wellknown: /var/www/letsencrypt
letsencrypt_activate: false
diff --git a/templates/nginx.j2 b/templates/nginx.j2
index 328ec7c..f138c84 100644
--- a/templates/nginx.j2
+++ b/templates/nginx.j2
@@ -20,8 +20,8 @@ server {
}
server {
- listen 443 ssl {% if enable_http2 %}http2{% endif %};
- listen [::]:443 ssl {% if enable_http2 %}http2{% endif %};
+ listen 443 ssl {% if nginx_enable_http2 %}http2{% endif %};
+ listen [::]:443 ssl {% if nginx_enable_http2 %}http2{% endif %};
server_name {{ nginx_domain }};
access_log /var/log/nginx/{{ nginx_domain }}.access.log;