From a272ad00c8d415096e934e5f3e8a2a635e9467c4 Mon Sep 17 00:00:00 2001 From: Proskurin Kirill Date: Mon, 28 Nov 2016 14:32:13 +0000 Subject: [PATCH] Add the HORIZON_IMAGES_UPLOAD_MODE feature Change-Id: I5d648c62d471c47ee79f0290baf53f93beb11da8 --- service/files/defaults.yaml | 1 + service/files/local_settings.j2 | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index 38c792f..7bf4767 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -4,6 +4,7 @@ configs: cont: 80 ingress: horizon secret_key: secret + images_upload_mode: legacy wsgi: processes: 6 diff --git a/service/files/local_settings.j2 b/service/files/local_settings.j2 index 835c415..340732d 100644 --- a/service/files/local_settings.j2 +++ b/service/files/local_settings.j2 @@ -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 = {