projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16266: Applies monkeypatch to fix CVE-2020-5267 on workbench1.
[arvados.git]
/
apps
/
workbench
/
config
/
environments
/
production.rb.example
diff --git
a/apps/workbench/config/environments/production.rb.example
b/apps/workbench/config/environments/production.rb.example
index bb7595454e381abd82ff3f740802274320882503..ea2cf34e3dbe5d17b438ce6ab4a88e376b3b8be9 100644
(file)
--- a/
apps/workbench/config/environments/production.rb.example
+++ b/
apps/workbench/config/environments/production.rb.example
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
ArvadosWorkbench::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
ArvadosWorkbench::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
@@
-9,10
+13,10
@@
ArvadosWorkbench::Application.configure do
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
- config.
serve_static_assets
= false
+ config.
public_file_server.enabled
= false
# Compress JavaScripts and CSS
# Compress JavaScripts and CSS
- config.assets.
compress = true
+ config.assets.
js_compressor = :uglifier
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
@@
-61,10
+65,6
@@
ArvadosWorkbench::Application.configure do
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
- # Log the query plan for queries taking more than this (works
- # with SQLite, MySQL, and PostgreSQL)
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
-
# Log timing data for API transactions
config.profiling_enabled = false
# Log timing data for API transactions
config.profiling_enabled = false