]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/config.rb
Allow trace image URL to be configured in the CSP policy
[rails.git] / config / initializers / config.rb
index b74ba57e635340cb82c9335abbe0de89f5f6df41..4edbcad631aa090107095ac7f200aff9a4d3c80c 100644 (file)
@@ -16,7 +16,7 @@ end
 # rubocop:enable Rails/Output, Rails/Exit
 
 # Allowed status values
-ALLOWED_STATUS ||= [
+ALLOWED_STATUS = [
   "online",            # online and operating normally
   "api_readonly",      # site online but API in read-only mode
   "api_offline",       # site online but API offline
@@ -77,6 +77,9 @@ Config.setup do |config|
     required(:api_timeout).filled(:int?)
     required(:imagery_blacklist).maybe(:array?)
     required(:status).filled(:str?, :included_in? => ALLOWED_STATUS)
-    required(:storage_service).filled(:str?)
+    required(:avatar_storage).filled(:str?)
+    required(:trace_file_storage).filled(:str?)
+    required(:trace_image_storage).filled(:str?)
+    required(:trace_icon_storage).filled(:str?)
   end
 end