mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-21 12:25:14 +00:00
Use http2
http2 is a more secure connection and in some cases can improve load times.
This commit is contained in:
parent
dbc5b69dc8
commit
c64afd2158
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user