Enable HTTP2 and HSTS

This commit is contained in:
Greg Karékinian
2017-04-07 18:20:22 +02:00
parent 4e5d452aff
commit 6bea5b7567
5 changed files with 7 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
server {
listen 80; # For Let's Encrypt
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
listen 443 ssl spdy;
listen 443 ssl http2;
<% end -%>
server_name <%= @server_name %>;