mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-05 10:46:10 +08:00
Allow setting of custom sizes for types hash (#219)
This commit is contained in:
committed by
GitHub
parent
5f8931c231
commit
323cae4c50
@@ -66,7 +66,8 @@ export default (domains, global) => {
|
||||
config.http.push(['server_tokens', 'off']);
|
||||
if (!global.logging.logNotFound.computed)
|
||||
config.http.push(['log_not_found', 'off']);
|
||||
config.http.push(['types_hash_max_size', 2048]);
|
||||
config.http.push(['types_hash_max_size', global.nginx.typesHashMaxSize.computed]);
|
||||
config.http.push(['types_hash_bucket_size', global.nginx.typesHashBucketSize.computed]);
|
||||
config.http.push(['client_max_body_size', `${global.nginx.clientMaxBodySize.computed}M`]);
|
||||
|
||||
config.http.push(['# MIME', '']);
|
||||
|
||||
Reference in New Issue
Block a user