web: improve nginx configuration

* Enable http2 by default
* Disable server_tokens by default
pull/460/head
Amin Vakil 5 years ago committed by GitHub
parent 2dd6b99191
commit b95c95de0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/rootfs/defaults/default
  2. 2
      web/rootfs/defaults/nginx.conf

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

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

Loading…
Cancel
Save