[IMP]Nginx : add HTTP2 per default

This commit is contained in:
Fabien BOURGEOIS 2021-04-17 17:43:42 +02:00
parent 04442b8d1d
commit 595e873c48
3 changed files with 3 additions and 3 deletions

View File

@ -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};

View File

@ -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;

View File

@ -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;