Kevin Burnett 8cb39ef214
allow large tokens to pass through nginx (#1550)
* allow large tokens to pass through nginx

* improve comment

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-13 16:56:37 -07:00

16 lines
579 B
Plaintext

server {
listen {{SPIFFWORKFLOW_FRONTEND_INTERNAL_PORT}};
server_name localhost;
# The default is 4 8k, which isn't quite enough for all openid tokens
# nginx config docs: https://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers
# repro: curl -s "http://localhost:8001/?token=$(perl -e 'print "a"x8200')"
# previously returned nginx error in response body: 414 Request-URI Too Large
large_client_header_buffers 4 16k;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}