Commit 2d761bd228
Verified · cmc
Layout: unified · split
linux/nginx/etc/nginx/nginx.conf +4 −4
| @@ -56,6 +56,10 @@ pid /var/run/nginx.pid; | ||
| 56 | 56 | |
| 57 | 57 | http { |
| 58 | 58 | |
| 59 | # Before any `map` (cache_expiration.conf, content_type_maps, backend_address). | |
| 60 | # https://nginx.org/en/docs/http/ngx_http_map_module.html#map_hash_bucket_size | |
| 61 | map_hash_bucket_size 128; | |
| 62 | ||
| 59 | 63 | # Hide Nginx version information. |
| 60 | 64 | include custom.d/security/server_software_information.conf; |
| 61 | 65 | |
| @@ -106,10 +110,6 @@ http { | ||
| 106 | 110 | # Specify file cache expiration. |
| 107 | 111 | include custom.d/web_performance/cache_expiration.conf; |
| 108 | 112 | |
| 109 | # Default map hash is too small for many long Host keys (.onion) in backend_address. | |
| 110 | # https://nginx.org/en/docs/http/ngx_http_map_module.html#map_hash_bucket_size | |
| 111 | map_hash_bucket_size 128; | |
| 112 | ||
| 113 | 113 | include custom.d/http/content_type_maps.conf; |
| 114 | 114 | |
| 115 | 115 | # Fix for onion links |