pixie icon indicating copy to clipboard operation
pixie copied to clipboard

Increase the default server names length in nginx config file

Open Sindvero opened this issue 2 years ago • 2 comments

It's going to increase the default server names length in the nginx config to avoid the following error:

[emerg] 8#8: could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64

That will allow people with very long domain names (e.g. very.very.long.domain.name.used.in.this.example.org) to make it work out of the box without having to mount the nginx.conf file in the pod.

Issue #590 And slack discussion: https://pixie-community.slack.com/archives/CQ63KEVFY/p1663087667528489

Reference to change this value:

  • https://sleeplessbeastie.eu/2019/11/18/how-to-increase-the-default-number-of-maximum-server-names-and-their-length-when-using-nginx/
  • https://gist.github.com/muhammadghazali/6c2b8c80d5528e3118613746e0041263

Sindvero avatar Sep 16 '22 04:09 Sindvero

Can one of the admins verify this patch?

pixie-io-buildbot avatar Sep 16 '22 04:09 pixie-io-buildbot

ok to test

zasgar avatar Sep 19 '22 17:09 zasgar

ok to test

zasgar avatar Sep 29 '22 22:09 zasgar