mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-13 02:54:27 +00:00
8cb39ef214
* allow large tokens to pass through nginx * improve comment --------- Co-authored-by: burnettk <burnettk@users.noreply.github.com>
16 lines
579 B
Plaintext
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;
|
|
}
|
|
}
|