Page MenuHomeVyOS Platform

Nginx does not allow big config queries for configure endpoint API
Closed, ResolvedPublicBUG


Nginx does not allow big config queries for /configure endpoint

$ time ./ 
Configuration failed. Status code: 413
Response: <html>
<head><title>413 Request Entity Too Large</title></head>
<center><h1>413 Request Entity Too Large</h1></center>

Requires to increase client_max_body_size in http section for the /etc/nginx/nginx.conf
For example:

client_max_body_size 20M;


Difficulty level
Unknown (require assessment)
VyOS 1.5-rolling-202403050022, 1.4.0-epa1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Mar 7 2024, 1:30 PM
Viacheslav created this task.

While at it, whats the configured response time in nginx?

Since a large config will most likely yield a large commit time (which will timeout)...