internetstandards / Internet.nl

Internet standards compliance test suite
https://internet.nl
164 stars 36 forks source link

Nginx, increase server_names_hash_bucket_size #1414

Open bwbroersma opened 1 month ago

bwbroersma commented 1 month ago

During deployment of the production to v1.8.6 this was encounted:

WARN[0000] config `uid`, `gid` and `mode` are not supported, they will be ignored 

Which resulted in:

container internetnl-prod-webserver-1 is unhealthy

The underlying problem was:

/docker-entrypoint.sh: Configuration complete; ready for start up
2024/05/15 11:42:25 [emerg] 1#1: 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

Which was the result of adding 4 extra domains to the REDIRECT_DOMAINS.

Solution will be adding

http {
    server_names_hash_bucket_size: 64;
}

to the nginx template.