Please increase the server_names_hash_bucket_size

I use Dokku in a private environment with very long hostname.... 64 was always a lot to short.
This commit is contained in:
Andre Bossard
2014-12-11 09:59:13 +01:00
parent 155f4e9aba
commit 79788e5690

View File

@@ -62,7 +62,7 @@ http {
EOF
echo 'server_names_hash_bucket_size 64;' >| /etc/nginx/conf.d/server_names_hash_bucket_size.conf
echo 'server_names_hash_bucket_size 512;' >| /etc/nginx/conf.d/server_names_hash_bucket_size.conf
if [[ ! -f "$DOKKU_ROOT/VHOST" ]]; then
[[ $(dig +short $(< "$DOKKU_ROOT/HOSTNAME")) ]] && cp "$DOKKU_ROOT/HOSTNAME" "$DOKKU_ROOT/VHOST"