Merge branch '6967-application-yml-without-git-wip'
[arvados.git] / apps / workbench / config / application.default.yml
1 # Do not use this file for site configuration. Create application.yml
2 # instead (see application.yml.example).
3
4 <%
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)
9 end
10
11 source_version = ""
12 local_modified = false
13 if Rails.env == "production"
14   # Read the version from our package's git-commit.version file, if available.
15   begin
16     source_version = IO.read(Rails.root.join("git-commit.version")).strip
17   rescue Errno::ENOENT
18   end
19 end
20
21 if source_version.empty?
22   begin
23     status_output = false
24     info_cmd("git", "status", "-s") do |git_pipe|
25       git_pipe.each_line do |_|
26         status_output = true
27         # Continue reading the pipe so git doesn't get SIGPIPE.
28       end
29     end
30     if $?.success?
31       info_cmd("git", "log", "-n1", "--format=%H") do |git_pipe|
32         git_pipe.each_line do |line|
33           source_version = line.chomp
34         end
35       end
36       local_modified = status_output
37     end
38   rescue SystemCallError
39   end
40 end
41 %>
42
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.
56 diagnostics:
57   arvados_workbench_url: https://localhost:3031
58   user_tokens:
59     active: eu33jurqntstmwo05h1jr3eblmi961e802703y6657s8zb14r
60   pipelines_to_test:
61     pipeline_1:
62       template_uuid: zzzzz-p5p6p-rxj8d71854j9idn
63       input_paths: [zzzzz-4zz18-nz98douzhaa3jh2]
64       max_wait_seconds: 10
65     pipeline_2:
66       template_uuid: zzzzz-p5p6p-1xbobfobk94ppbv
67       input_paths: [zzzzz-4zz18-nz98douzhaa3jh2, zzzzz-4zz18-gpw9o5wpcti3nib]
68
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".
72 performance:
73   arvados_workbench_url: https://localhost:3031
74   user_token: eu33jurqntstmwo05h1jr3eblmi961e802703y6657s8zb14r
75
76 development:
77   cache_classes: false
78   eager_load: true
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
84   assets.debug: true
85   profiling_enabled: true
86   site_name: Arvados Workbench (dev)
87   local_modified: "<%= local_modified ? '-modified' : '' %>"
88
89   # API server configuration
90   arvados_login_base: ~
91   arvados_v1_base: ~
92   arvados_insecure_https: ~
93
94 production:
95   force_ssl: true
96   cache_classes: true
97   eager_load: true
98   consider_all_requests_local: false
99   action_controller.perform_caching: true
100   serve_static_assets: false
101   assets.compile: false
102   assets.digest: true
103   i18n.fallbacks: true
104   active_support.deprecation: :notify
105   profiling_enabled: false
106
107   arvados_insecure_https: false
108
109   data_import_dir: /data/arvados-workbench-upload/data
110   data_export_dir: /data/arvados-workbench-download/data
111
112   # API server configuration
113   arvados_login_base: ~
114   arvados_v1_base: ~
115   arvados_insecure_https: ~
116
117   site_name: Arvados Workbench
118
119 test:
120   cache_classes: true
121   eager_load: false
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) %>
133
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
141
142   site_name: Workbench:test
143
144   # Enable user profile with one required field
145   user_profile_form_fields:
146     - key: organization
147       type: text
148       form_field_title: Institution
149       form_field_description: Your organization
150       required: true
151     - key: role
152       type: select
153       form_field_title: Your role
154       form_field_description: Choose the category that best describes your role in your organization.
155       options:
156         - Bio-informatician
157         - Computational biologist
158         - Biologist or geneticist
159         - Software developer
160         - IT
161         - Other
162
163 common:
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
176   secret_token: ~
177   secret_key_base: false
178   default_openid_prefix: https://www.google.com/accounts/o8/id
179   send_user_setup_notification_email: true
180
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 %>
185
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
190
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
205   #    type: text
206   #    form_field_title: Institution/Company
207   #    form_field_description: Your organization
208   #    required: true
209   #  - key: role
210   #    type: select
211   #    form_field_title: Your role
212   #    form_field_description: Choose the category that best describes your role in your organization.
213   #    options:
214   #      - Bio-informatician
215   #      - Computational biologist
216   #      - Biologist or geneticist
217   #      - Software developer
218   #      - IT
219   #      - Other
220
221   # Use "user_profile_form_message" to configure the message you want to display on
222   # the profile page.
223   user_profile_form_message: Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.
224
225   # source_version
226   source_version: "<%= source_version[0...8] %>"
227   local_modified: false
228
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
233
234   # generic issue email from
235   email_from: arvados@example.com
236
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]
242
243   # the maximum number of bytes to load in the log viewer
244   log_viewer_max_bytes: 1000000
245
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
250
251   # when anonymous_user_token is configured, show public projects page
252   enable_public_projects_page: true
253
254   # Ask Arvados API server to compress its response payloads.
255   api_response_compression: true
256
257   # ShellInABox service endpoint URL for a given VM.  If false, do not
258   # offer web shell logins.
259   #
260   # E.g., using a path-based proxy server to forward connections to shell hosts:
261   # https://webshell.uuid_prefix.arvadosapi.com/%{hostname}
262   #
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