fix: nginx [warn] could not build optimal proxy_headers_hash

you should increase either proxy_headers_hash_max_size: 512 or
proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size

See:
https://nginx.org/en/docs/hash.html

https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_headers_hash_max_size
This commit is contained in:
teutat3s 2023-11-03 13:48:55 +01:00
parent 63c42e4eb8
commit 2c6334b982
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -19,6 +19,11 @@ in {
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
appendHttpConfig = ''
# https://nginx.org/en/docs/hash.html
proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size = 64;
'';
};
security.acme = {