[IMP]Nginx : add HTTP2 per default
This commit is contained in:
parent
04442b8d1d
commit
595e873c48
@ -1,6 +1,6 @@
|
||||
server {
|
||||
listen ${NGINX_PORT} default_server;
|
||||
listen ${NGINX_SSL_PORT} ssl default_server;
|
||||
listen ${NGINX_SSL_PORT} ssl http2 default_server;
|
||||
server_name ${NGINX_HOST};
|
||||
ssl_certificate ${CERTIFICATE_PATH};
|
||||
ssl_certificate_key ${CERTIFICATE_KEY_PATH};
|
||||
|
@ -13,7 +13,7 @@ server {
|
||||
}
|
||||
|
||||
server {
|
||||
listen ${NGINX_SSL_PORT} ssl;
|
||||
listen ${NGINX_SSL_PORT} ssl http2;
|
||||
server_name ${SERVER_NAMES};
|
||||
client_max_body_size 500M;
|
||||
gzip on;
|
||||
|
@ -7,7 +7,7 @@ upstream ${SERVICE}longpoll {
|
||||
}
|
||||
|
||||
server {
|
||||
listen ${NGINX_PORT};
|
||||
listen ${NGINX_PORT} http2;
|
||||
server_name ${SERVER_NAMES};
|
||||
client_max_body_size 500M;
|
||||
keepalive_timeout 120s;
|
||||
|
Loading…
Reference in New Issue
Block a user