Support large uploads via Skyline

A new override, `skyline_client_max_body_size`, has been introduced to
support large image uploads via the Skyline dashboard. The default value
of 1100M supports upstream Ubuntu and Rocky Linux images, but can be
increased to support larger images or decreased to encourage the use
of the CLI.

Change-Id: I0fc079692980ccd24edabcea5382ff6ada693893
This commit is contained in:
James Denton 2024-03-25 13:56:31 -05:00 committed by James Denton
parent 4287079a5a
commit 42b219b9d7
3 changed files with 14 additions and 0 deletions

View File

@ -109,3 +109,6 @@ skyline_services:
## Tunable overrides
skyline_apiserver_init_overrides: {}
skyline_skyline_yaml_overrides: {}
# Set override for image upload size
skyline_client_max_body_size: 1100M

View File

@ -0,0 +1,8 @@
---
features:
- |
A new override, `skyline_client_max_body_size`, has been introduced to
support large image uploads via the Skyline dashboard. The default value
of 1100M supports upstream Ubuntu and Rocky Linux images, but can be
increased to support larger images or decreased to encourage the use
of the CLI.

View File

@ -46,6 +46,9 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Host $http_host;
{% if 'glance' in _service %}
client_max_body_size {{ skyline_client_max_body_size }};
{% endif %}
}
{% endif %}
{% endfor %}