mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 14:01:35 +00:00
Use http2
http2 is a more secure connection and in some cases can improve load times.
This commit is contained in:
@@ -165,7 +165,7 @@ server {
|
|||||||
# The majority of SSL options depend on what your application does or needs
|
# The majority of SSL options depend on what your application does or needs
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl http2;
|
||||||
server_name example.com;
|
server_name example.com;
|
||||||
|
|
||||||
ssl on;
|
ssl on;
|
||||||
@@ -212,4 +212,4 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://node_js;
|
proxy_pass http://node_js;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user