fix: increase Nginx header buffer size for IAP JWT tokens

Increases client_header_buffer_size to 4k and large_client_header_buffers
to 4 16k to handle large Google Cloud IAP JWT headers that were causing
500 errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Danny 2026-01-08 18:27:03 -06:00
parent c8f10cb7f0
commit 0fd02b8d01
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@ server {
listen 80;
server_name _;
# Increase buffer size to handle large IAP JWT headers
client_header_buffer_size 4k;
large_client_header_buffers 4 16k;
root /usr/share/nginx/html;
index index.html;