Browse Source

Add the HORIZON_IMAGES_UPLOAD_MODE feature

Change-Id: I5d648c62d471c47ee79f0290baf53f93beb11da8
changes/93/403793/1
Proskurin Kirill 3 years ago
parent
commit
5e2b857155
2 changed files with 6 additions and 0 deletions
  1. 1
    0
      service/files/defaults.yaml
  2. 5
    0
      service/files/local_settings.j2

+ 1
- 0
service/files/defaults.yaml View File

@@ -4,6 +4,7 @@ configs:
cont: 80
ingress: horizon
secret_key: secret
images_upload_mode: legacy

wsgi:
processes: 6

+ 5
- 0
service/files/local_settings.j2 View File

@@ -225,6 +225,11 @@ OPENSTACK_KEYSTONE_BACKEND = {
LAUNCH_INSTANCE_LEGACY_ENABLED = False
LAUNCH_INSTANCE_NG_ENABLED = True

# "off" disables the ability to upload images via Horizon. "legacy" enables
# local file upload by piping the image file through the Horizon’s web-server.
# "direct" sends the image file directly from the web browser to Glance.
HORIZON_IMAGES_UPLOAD_MODE = "{{ horizon.images_upload_mode }}"

# A dictionary of settings which can be used to provide the default values for
# properties found in the Launch Instance modal.
#LAUNCH_INSTANCE_DEFAULTS = {

Loading…
Cancel
Save