diff --git a/src/nginxconfig/generators/conf/nginx.conf.js b/src/nginxconfig/generators/conf/nginx.conf.js index cd55566..5a554c4 100644 --- a/src/nginxconfig/generators/conf/nginx.conf.js +++ b/src/nginxconfig/generators/conf/nginx.conf.js @@ -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', '']); diff --git a/src/nginxconfig/templates/global_sections/nginx.vue b/src/nginxconfig/templates/global_sections/nginx.vue index 0e09832..bae29f6 100644 --- a/src/nginxconfig/templates/global_sections/nginx.vue +++ b/src/nginxconfig/templates/global_sections/nginx.vue @@ -116,6 +116,38 @@ THE SOFTWARE. + +