From e7590f702653f88281caeeac6f0b2ba2aab5b4e4 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 10 Jan 2022 14:16:34 +0900 Subject: [PATCH] Add parameter description of HORIZON_IMAGES_UPLOAD_MODE Change-Id: I7c82428a81c840dbded0d93f7dbcdf6861833099 --- templates/local_settings.py.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/local_settings.py.erb b/templates/local_settings.py.erb index cdc16cc5..577967e3 100644 --- a/templates/local_settings.py.erb +++ b/templates/local_settings.py.erb @@ -1022,6 +1022,11 @@ OVERVIEW_DAYS_RANGE = <%= @overview_days_range %> #DISALLOW_IFRAME_EMBED = True DISALLOW_IFRAME_EMBED = <%= @disallow_iframe_embed.to_s.capitalize %> -<% if @horizon_upload_mode_real %> +# Set to 'legacy' or 'direct' to allow users to upload images to glance via +# Horizon server. When enabled, a file form field will appear on the create +# image form. If set to 'off', there will be no file form field on the create +# image form. See documentation for deployment considerations. +#HORIZON_IMAGES_UPLOAD_MODE = 'legacy' +<% if @horizon_upload_mode_real -%> HORIZON_IMAGES_UPLOAD_MODE = "<%= @horizon_upload_mode_real %>" -<% end %> +<%- end -%>