Enable HTTP2 and HSTS
This commit is contained in:
@@ -11,7 +11,7 @@ map $http_upgrade $connection_upgrade {
|
||||
server {
|
||||
listen 80; # For Let's Encrypt
|
||||
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
|
||||
listen <%= @sockethub_external_port %> ssl spdy;
|
||||
listen <%= @sockethub_external_port %> ssl http2;
|
||||
add_header Strict-Transport-Security "max-age=15768000";
|
||||
<% end -%>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user