updated nginx default configuration
This commit is contained in:
@@ -45,8 +45,9 @@ http {
|
||||
ssl_ecdh_curve X25519:P-521:P-384;
|
||||
ssl_ciphers [ECDHE-ECDSA-CHACHA20-POLY1305|ECDHE-RSA-CHACHA20-POLY1305|ECDHE-ECDSA-AES256-GCM-SHA384|ECDHE-RSA-AES256-GCM-SHA384]:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_session_cache shared:SSL:20m;
|
||||
ssl_session_timeout 15m;
|
||||
ssl_session_cache shared:SSL:1m;
|
||||
ssl_session_timeout 1h;
|
||||
|
||||
ssl_session_tickets off;
|
||||
|
||||
http2 on;
|
||||
@@ -73,18 +74,18 @@ http {
|
||||
image/svg+xml;
|
||||
|
||||
brotli_static on;
|
||||
#brotli on;
|
||||
#brotli_comp_level 6;
|
||||
#brotli_types
|
||||
# text/plain
|
||||
# text/css
|
||||
# text/x-component
|
||||
# text/javascript application/javascript application/x-javascript
|
||||
# text/xml application/xml application/rss+xml
|
||||
# application/json
|
||||
# application/vnd.ms-fontobject
|
||||
# font/truetype font/opentype
|
||||
# image/svg+xml;
|
||||
brotli on;
|
||||
brotli_comp_level 6;
|
||||
brotli_types
|
||||
text/plain
|
||||
text/css
|
||||
text/x-component
|
||||
text/javascript application/javascript application/x-javascript
|
||||
text/xml application/xml application/rss+xml
|
||||
application/json
|
||||
application/vnd.ms-fontobject
|
||||
font/truetype font/opentype
|
||||
image/svg+xml;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user