From b95c95de0e253a780ef7e22741f562c9a70b07c2 Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Wed, 15 Apr 2020 14:39:28 +0430 Subject: [PATCH] web: improve nginx configuration * Enable http2 by default * Disable server_tokens by default --- web/rootfs/defaults/default | 2 +- web/rootfs/defaults/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/rootfs/defaults/default b/web/rootfs/defaults/default index d577532..13c3cf3 100644 --- a/web/rootfs/defaults/default +++ b/web/rootfs/defaults/default @@ -10,7 +10,7 @@ server { {{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }} server { - listen 443 ssl; + listen 443 ssl http2; include /config/nginx/ssl.conf; include /config/nginx/meet.conf; diff --git a/web/rootfs/defaults/nginx.conf b/web/rootfs/defaults/nginx.conf index fa1a78e..5b1027a 100644 --- a/web/rootfs/defaults/nginx.conf +++ b/web/rootfs/defaults/nginx.conf @@ -19,7 +19,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - # server_tokens off; + server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off;