1 # Do not use this file for site configuration. Create application.yml
2 # instead (see application.yml.example).
5 # If you change any of the code in this block, you'll probably also want
6 # to update it in API server's application.default.yml.
7 def info_cmd(*args, &block)
8 IO.popen(args, "r", chdir: Rails.root, err: "/dev/null", &block)
12 local_modified = false
13 if Rails.env == "production"
14 # Read the version from our package's git-commit.version file, if available.
16 source_version = IO.read(Rails.root.join("git-commit.version")).strip
21 if source_version.empty?
24 info_cmd("git", "status", "-s") do |git_pipe|
25 git_pipe.each_line do |_|
27 # Continue reading the pipe so git doesn't get SIGPIPE.
31 info_cmd("git", "log", "-n1", "--format=%H") do |git_pipe|
32 git_pipe.each_line do |line|
33 source_version = line.chomp
36 local_modified = status_output
38 rescue SystemCallError
43 # Below is a sample setting for diagnostics testing.
44 # Configure workbench URL as "arvados_workbench_url"
45 # Configure test user tokens as "user_tokens".
46 # At this time the tests need an "active" user token.
47 # Also, configure the pipelines to be executed as "pipelines_to_test".
48 # For each of the pipelines identified by the name of your choice
49 # ("pipeline_1" and "pipeline_2" in this sample), provide the following:
50 # template_uuid: is the uuid of the template to be executed
51 # input_paths: an array of inputs for the pipeline. Use either a collection's "uuid"
52 # or a file's "uuid/file_name" path in this array. If the pipeline does not require
53 # any inputs, this can be omitted.
54 # max_wait_seconds: max time in seconds to wait for the pipeline run to complete.
55 # Default value of 30 seconds is used when this value is not provided.
57 arvados_workbench_url: https://localhost:3031
59 active: eu33jurqntstmwo05h1jr3eblmi961e802703y6657s8zb14r
62 template_uuid: zzzzz-p5p6p-rxj8d71854j9idn
63 input_paths: [zzzzz-4zz18-nz98douzhaa3jh2]
66 template_uuid: zzzzz-p5p6p-1xbobfobk94ppbv
67 input_paths: [zzzzz-4zz18-nz98douzhaa3jh2, zzzzz-4zz18-gpw9o5wpcti3nib]
69 # Below is a sample setting for performance testing.
70 # Configure workbench URL as "arvados_workbench_url"
71 # Configure test user token as "user_token".
73 arvados_workbench_url: https://localhost:3031
74 user_token: eu33jurqntstmwo05h1jr3eblmi961e802703y6657s8zb14r
79 consider_all_requests_local: true
80 action_controller.perform_caching: false
81 action_mailer.raise_delivery_errors: false
82 active_support.deprecation: :log
83 action_dispatch.best_standards_support: :builtin
85 profiling_enabled: true
86 site_name: Arvados Workbench (dev)
87 local_modified: "<%= local_modified ? '-modified' : '' %>"
89 # API server configuration
92 arvados_insecure_https: ~
98 consider_all_requests_local: false
99 action_controller.perform_caching: true
100 serve_static_assets: false
101 assets.compile: false
104 active_support.deprecation: :notify
105 profiling_enabled: false
107 arvados_insecure_https: false
109 data_import_dir: /data/arvados-workbench-upload/data
110 data_export_dir: /data/arvados-workbench-download/data
112 # API server configuration
113 arvados_login_base: ~
115 arvados_insecure_https: ~
117 site_name: Arvados Workbench
122 serve_static_assets: true
123 static_cache_control: public, max-age=3600
124 consider_all_requests_local: true
125 action_controller.perform_caching: false
126 action_dispatch.show_exceptions: false
127 action_controller.allow_forgery_protection: false
128 action_mailer.delivery_method: :test
129 active_support.deprecation: :stderr
130 profiling_enabled: true
131 secret_token: <%= rand(2**256).to_s(36) %>
132 secret_key_base: <%= rand(2**256).to_s(36) %>
134 # When you run the Workbench's integration tests, it starts the API
135 # server as a dependency. These settings should match the API
136 # server's Rails defaults. If you adjust those, change these
137 # settings in application.yml to match.
138 arvados_login_base: https://localhost:3000/login
139 arvados_v1_base: https://localhost:3000/arvados/v1
140 arvados_insecure_https: true
142 site_name: Workbench:test
144 # Enable user profile with one required field
145 user_profile_form_fields:
148 form_field_title: Institution
149 form_field_description: Your organization
153 form_field_title: Your role
154 form_field_description: Choose the category that best describes your role in your organization.
157 - Computational biologist
158 - Biologist or geneticist
164 assets.js_compressor: false
165 assets.css_compressor: false
166 data_import_dir: /tmp/arvados-workbench-upload
167 data_export_dir: /tmp/arvados-workbench-download
168 arvados_login_base: https://arvados.local/login
169 arvados_v1_base: https://arvados.local/arvados/v1
170 arvados_insecure_https: true
171 activation_contact_link: mailto:info@arvados.org
172 arvados_docsite: http://doc.arvados.org
173 arvados_public_data_doc_url: http://arvados.org/projects/arvados/wiki/Public_Pipelines_and_Datasets
174 arvados_theme: default
175 show_user_agreement_inline: false
177 secret_key_base: false
178 default_openid_prefix: https://www.google.com/accounts/o8/id
179 send_user_setup_notification_email: true
181 # Scratch directory used by the remote repository browsing
182 # feature. If it doesn't exist, it (and any missing parents) will be
183 # created using mkdir_p.
184 repository_cache: <%= File.expand_path 'tmp/git', Rails.root %>
186 # Set user_profile_form_fields to enable and configure the user
187 # profile page. Default is set to false. A commented example with
188 # full description is provided below.
189 user_profile_form_fields: false
191 # Below is a sample setting of user_profile_form_fields config parameter.
192 # This configuration parameter should be set to either false (to disable) or
193 # to an array as shown below.
194 # Configure the list of input fields to be displayed in the profile page
195 # using the attribute "key" for each of the input fields.
196 # This sample shows configuration with one required and one optional form fields.
197 # For each of these input fields:
198 # You can specify "type" as "text" or "select".
199 # List the "options" to be displayed for each of the "select" menu.
200 # Set "required" as "true" for any of these fields to make them required.
201 # If any of the required fields are missing in the user's profile, the user will be
202 # redirected to the profile page before they can access any Workbench features.
203 #user_profile_form_fields:
204 # - key: organization
206 # form_field_title: Institution/Company
207 # form_field_description: Your organization
211 # form_field_title: Your role
212 # form_field_description: Choose the category that best describes your role in your organization.
214 # - Bio-informatician
215 # - Computational biologist
216 # - Biologist or geneticist
217 # - Software developer
221 # Use "user_profile_form_message" to configure the message you want to display on
223 user_profile_form_message: Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.
226 source_version: "<%= source_version[0...8] %>"
227 local_modified: false
229 # report notification to and from addresses
230 issue_reporter_email_from: arvados@example.com
231 issue_reporter_email_to: arvados@example.com
232 support_email_address: arvados@example.com
234 # generic issue email from
235 email_from: arvados@example.com
237 # Mimetypes of applications for which the view icon
238 # would be enabled in a collection's show page.
239 # It is sufficient to list only applications here.
240 # No need to list text and image types.
241 application_mimetypes_with_view_icon: [fasta, go, javascript, json, pdf, python, r, rtf, sam, sh, xml, xsl]
243 # the maximum number of bytes to load in the log viewer
244 log_viewer_max_bytes: 1000000
246 # Set anonymous_user_token to enable anonymous user access. You can get
247 # the token by running "bundle exec ./script/get_anonymous_user_token.rb"
248 # in the directory where your API server is running.
249 anonymous_user_token: false
251 # when anonymous_user_token is configured, show public projects page
252 enable_public_projects_page: true
254 # Ask Arvados API server to compress its response payloads.
255 api_response_compression: true
257 # ShellInABox service endpoint URL for a given VM. If false, do not
258 # offer web shell logins.
260 # E.g., using a path-based proxy server to forward connections to shell hosts:
261 # https://webshell.uuid_prefix.arvadosapi.com/%{hostname}
263 # E.g., using a name-based proxy server to forward connections to shell hosts:
264 # https://%{hostname}.webshell.uuid_prefix.arvadosapi.com/
265 shell_in_a_box_url: false