Merge branch 'master' into 6156-hostnames-in-nodes
[arvados.git] / services / api / config / application.default.yml
1 # Do not use this file for site configuration. Create application.yml
2 # instead (see application.yml.example).
3
4 development:
5   force_ssl: false
6   cache_classes: false
7   whiny_nils: true
8   consider_all_requests_local: true
9   action_controller.perform_caching: false
10   action_mailer.raise_delivery_errors: false
11   action_mailer.perform_deliveries: false
12   active_support.deprecation: :log
13   action_dispatch.best_standards_support: :builtin
14   active_record.mass_assignment_sanitizer: :strict
15   active_record.auto_explain_threshold_in_seconds: 0.5
16   assets.compress: false
17   assets.debug: true
18   local_modified: "<%= '-modified' if `git status -s` != '' %>"
19
20 production:
21   force_ssl: true
22   cache_classes: true
23   consider_all_requests_local: false
24   action_controller.perform_caching: true
25   serve_static_assets: false
26   assets.compress: true
27   assets.compile: false
28   assets.digest: true
29
30 test:
31   force_ssl: false
32   cache_classes: true
33   serve_static_assets: true
34   static_cache_control: public, max-age=3600
35   whiny_nils: true
36   consider_all_requests_local: true
37   action_controller.perform_caching: false
38   action_dispatch.show_exceptions: false
39   action_controller.allow_forgery_protection: false
40   action_mailer.delivery_method: :test
41   active_support.deprecation: :stderr
42   active_record.mass_assignment_sanitizer: :strict
43   uuid_prefix: zzzzz
44   secret_token: <%= rand(2**512).to_s(36) %>
45   blob_signing_key: zfhgfenhffzltr9dixws36j1yhksjoll2grmku38mi7yxd66h5j4q9w4jzanezacp8s6q0ro3hxakfye02152hncy6zml2ed0uc
46   user_profile_notification_address: arvados@example.com
47   workbench_address: https://localhost:3001/
48   git_repositories_dir: <%= Rails.root.join 'tmp', 'git', 'test' %>
49   git_internal_dir: <%= Rails.root.join 'tmp', 'internal.git' %>
50
51 common:
52   # The prefix used for all database identifiers to identify the record as
53   # originating from this site.  Must be exactly 5 alphanumeric characters
54   # (lowercase ASCII letters and digits).
55   uuid_prefix: <%= Digest::MD5.hexdigest(`hostname`).to_i(16).to_s(36)[0..4] %>
56
57   # If not false, this is the hostname that will be used for root_url and
58   # advertised in the discovery document.  By default, use the default Rails
59   # logic for deciding on a hostname.
60   host: false
61
62   # Base part of SSH git clone url given with repository resources. If
63   # true, the default "git@git.(uuid_prefix).arvadosapi.com:" is
64   # used. If false, SSH clone URLs are not advertised. Include a
65   # trailing ":" or "/" if needed: it will not be added automatically.
66   git_repo_ssh_base: true
67
68   # Base part of HTTPS git clone urls given with repository
69   # resources. This is expected to be an arv-git-httpd service which
70   # accepts API tokens as HTTP-auth passwords. If true, the default
71   # "https://git.(uuid_prefix).arvadosapi.com/" is used. If false,
72   # HTTPS clone URLs are not advertised. Include a trailing ":" or "/"
73   # if needed: it will not be added automatically.
74   git_repo_https_base: true
75
76   # If this is not false, HTML requests at the API server's root URL
77   # are redirected to this location, and it is provided in the text of
78   # user activation notification email messages to remind them where
79   # to log in.
80   workbench_address: false
81
82   # Git repositories must be readable by api server, or you won't be
83   # able to submit crunch jobs. To pass the test suites, put a clone
84   # of the arvados tree in {git_repositories_dir}/arvados.git or
85   # {git_repositories_dir}/arvados/.git
86   git_repositories_dir: /var/lib/arvados/git
87
88   # This is a (bare) repository that stores commits used in jobs.  When a job
89   # runs, the source commits are first fetched into this repository, then this
90   # repository is used to deploy to compute nodes.  This should NOT be a
91   # subdirectory of {git_repositiories_dir}.
92   git_internal_dir: /var/lib/arvados/internal.git
93
94   # :none or :slurm_immediate
95   crunch_job_wrapper: :none
96
97   # username, or false = do not set uid when running jobs.
98   crunch_job_user: crunch
99
100   # The web service must be able to create/write this file, and
101   # crunch-job must be able to stat() it.
102   crunch_refresh_trigger: /tmp/crunch_refresh_trigger
103
104   # These two settings control how frequently log events are flushed to the
105   # database.  Log lines are buffered until either crunch_log_bytes_per_event
106   # has been reached or crunch_log_seconds_between_events has elapsed since
107   # the last flush.
108   crunch_log_bytes_per_event: 4096
109   crunch_log_seconds_between_events: 1
110
111   # The sample period for throttling logs, in seconds.
112   crunch_log_throttle_period: 60
113
114   # Maximum number of bytes that job can log over crunch_log_throttle_period
115   # before being silenced until the end of the period.
116   crunch_log_throttle_bytes: 65536
117
118   # Maximum number of lines that job can log over crunch_log_throttle_period
119   # before being silenced until the end of the period.
120   crunch_log_throttle_lines: 1024
121
122   # Maximum bytes that may be logged by a single job.  Log bytes that are
123   # silenced by throttling are not counted against this total.
124   crunch_limit_log_bytes_per_job: 67108864
125
126   # Path to dns server configuration directory
127   # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
128   # files or touch restart.txt (see below).
129   dns_server_conf_dir: false
130
131   # Template file for the dns server host snippets. See
132   # unbound.template in this directory for an example. If false, do
133   # not write any config files.
134   dns_server_conf_template: false
135
136   # String to write to {dns_server_conf_dir}/restart.txt (with a
137   # trailing newline) after updating local data. If false, do not
138   # open or write the restart.txt file.
139   dns_server_reload_command: false
140
141   # Command to run after each DNS update. Template variables will be
142   # substituted; see the "unbound" example below. If false, do not run
143   # a command.
144   dns_server_update_command: false
145
146   ## Example for unbound:
147   #dns_server_conf_dir: /etc/unbound/conf.d
148   #dns_server_conf_template: /path/to/your/api/server/config/unbound.template
149   ## ...plus one of the following two methods of reloading:
150   #dns_server_reload_command: unbound-control reload
151   #dns_server_update_command: echo %{hostname} %{hostname}.%{uuid_prefix} %{hostname}.%{uuid_prefix}.arvadosapi.com %{ptr_domain} | xargs -n 1 unbound-control local_data_remove && unbound-control local_data %{hostname} IN A %{ip_address} && unbound-control local_data %{hostname}.%{uuid_prefix} IN A %{ip_address} && unbound-control local_data %{hostname}.%{uuid_prefix}.arvadosapi.com IN A %{ip_address} && unbound-control local_data %{ptr_domain}. IN PTR %{hostname}.%{uuid_prefix}.arvadosapi.com
152
153   compute_node_domain: false
154   compute_node_nameservers:
155     - 192.168.1.1
156
157   # The version below is suitable for AWS.
158   # To use it, copy it to your application.yml, uncomment, and change <%# to <%=
159   # compute_node_nameservers: <%#
160   #   require 'net/http'
161   #   ['local', 'public'].collect do |iface|
162   #     Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
163   #   end << '172.16.0.23'
164   # %>
165
166   accept_api_token: {}
167
168   # When new_users_are_active is set to true, the user agreement check is skipped.
169   new_users_are_active: false
170
171   admin_notifier_email_from: arvados@example.com
172   email_subject_prefix: "[ARVADOS] "
173   user_notifier_email_from: arvados@example.com
174   new_user_notification_recipients: [ ]
175   new_inactive_user_notification_recipients: [ ]
176
177   # The e-mail address of the user you would like to become marked as an admin
178   # user on their first login.
179   # In the default configuration, authentication happens through the Arvados SSO
180   # server, which uses openid against Google's servers, so in that case this
181   # should be an address associated with a Google account.
182   auto_admin_user: false
183
184   # If auto_admin_first_user is set to true, the first user to log in when no
185   # other admin users exist will automatically become an admin user.
186   auto_admin_first_user: false
187
188   ## Set Time.zone default to the specified zone and make Active
189   ## Record auto-convert to this zone.  Run "rake -D time" for a list
190   ## of tasks for finding time zone names. Default is UTC.
191   #time_zone: Central Time (US & Canada)
192
193   ## Default encoding used in templates for Ruby 1.9.
194   encoding: utf-8
195
196   # Enable the asset pipeline
197   assets.enabled: true
198
199   # Version of your assets, change this if you want to expire all your assets
200   assets.version: "1.0"
201
202   arvados_theme: default
203
204   # The ARVADOS_WEBSOCKETS environment variable determines whether to
205   # serve http, websockets, or both.
206   #
207   # If ARVADOS_WEBSOCKETS="true", http and websockets are both served
208   # from the same process.
209   #
210   # If ARVADOS_WEBSOCKETS="ws-only", only websockets is served.
211   #
212   # If ARVADOS_WEBSOCKETS="false" or not set at all, only http is
213   # served. In this case, you should have a separate process serving
214   # websockets, and the address of that service should be given here
215   # as websocket_address.
216   #
217   # If websocket_address is false (which is the default), the
218   # discovery document will tell clients to use the current server as
219   # the websocket service, or (if the current server does not have
220   # websockets enabled) not to use websockets at all.
221   #
222   # Example: Clients will connect to the specified endpoint.
223   #websocket_address: wss://127.0.0.1:3333/websocket
224   # Default: Clients will connect to this server if it's running
225   # websockets, otherwise none at all.
226   websocket_address: false
227
228   # blob_signing_key is a string of alphanumeric characters used to
229   # generate permission signatures for Keep locators. It must be
230   # identical to the permission key given to Keep. IMPORTANT: This is
231   # a site secret. It should be at least 50 characters.
232   blob_signing_key: ~
233
234   # Lifetime (in seconds) of blob permission signatures generated by
235   # the API server. This determines how long a client can take (after
236   # retrieving a collection record) to retrieve the collection data
237   # from Keep. If the client needs more time than that (assuming the
238   # collection still has the same content and the relevant user/token
239   # still has permission) the client can retrieve the collection again
240   # to get fresh signatures.
241   #
242   # Datamanager considers an unreferenced block older than this to be
243   # eligible for garbage collection. Therefore, it should never be
244   # smaller than the corresponding value used by any local keepstore
245   # service (see keepstore -blob-signature-ttl flag). This rule
246   # prevents datamanager from trying to garbage-collect recently
247   # written blocks while clients are still holding valid signatures.
248   #
249   # The default is 2 weeks.
250   blob_signature_ttl: 1209600
251
252   # Allow clients to create collections by providing a manifest with
253   # unsigned data blob locators. IMPORTANT: This effectively disables
254   # access controls for data stored in Keep: a client who knows a hash
255   # can write a manifest that references the hash, pass it to
256   # collections.create (which will create a permission link), use
257   # collections.get to obtain a signature for that data locator, and
258   # use that signed locator to retrieve the data from Keep. Therefore,
259   # do not turn this on if your users expect to keep data private from
260   # one another!
261   permit_create_collection_with_unsigned_manifest: false
262
263   # secret_token is a string of alphanumeric characters used by Rails
264   # to sign session tokens. IMPORTANT: This is a site secret. It
265   # should be at least 50 characters.
266   secret_token: ~
267
268   # Email address to notify whenever a user creates a profile for the
269   # first time
270   user_profile_notification_address: false
271
272   default_openid_prefix: https://www.google.com/accounts/o8/id
273
274   # Config parameters to automatically setup new users.
275   # The params auto_setup_new_users_with_* are meaningful only when auto_setup_new_users is turned on.
276   # auto_setup_name_blacklist is a list of usernames to be blacklisted for auto setup.
277   auto_setup_new_users: false
278   auto_setup_new_users_with_vm_uuid: false
279   auto_setup_new_users_with_repository: false
280   auto_setup_name_blacklist: [arvados, git, gitolite, gitolite-admin, root, syslog]
281
282   # source_version
283   source_version: "<%= `git log -n 1 --format=%h`.strip %>"
284   local_modified: false
285
286   # Default lifetime for ephemeral collections: 2 weeks.
287   default_trash_lifetime: 1209600
288
289   # Permit insecure (OpenSSL::SSL::VERIFY_NONE) connections to the Single Sign
290   # On (sso) server.  Should only be enabled during development when the SSO
291   # server is using a self-signed cert.
292   sso_insecure: false
293
294   # Default replication level for collections. This is used when a
295   # collection's replication_desired attribute is nil.
296   default_collection_replication: 2
297
298   # Maximum size (in bytes) allowed for a single API request.  This
299   # limit is published in the discovery document for use by clients.
300   # Note: You must separately configure the upstream web server or
301   # proxy to actually enforce the desired maximum request size on the
302   # server side.
303   max_request_size: 134217728
304
305   # Limit the number of bytes read from the database during an index
306   # request (by retrieving and returning fewer rows than would
307   # normally be returned in a single response).
308   # Note 1: This setting never reduces the number of returned rows to
309   # zero, no matter how big the first data row is.
310   # Note 2: Currently, this only limits the
311   # arvados.v1.collections.list API (GET /arvados/v1/collections), and
312   # only takes the size of manifest_text into account. Other fields
313   # (e.g., "properties" hashes) are not counted against this limit
314   # when returning collections, and the limit is not applied at all
315   # for other data types.
316   max_index_database_read: 134217728
317
318   # When you run the db:delete_old_job_logs task, it will find jobs that
319   # have been finished for at least this many seconds, and delete their
320   # stderr logs from the logs table.
321   clean_job_log_rows_after: <%= 30.days %>
322
323   # The maximum number of compute nodes that can be in use simultaneously
324   # If this limit is reduced, any existing nodes with slot number >= new limit
325   # will not be counted against the new limit. In other words, the new limit
326   # won't be strictly enforced until those nodes with higher slot numbers
327   # go down.
328   max_compute_nodes: 64
329
330   # Docker image to be used when none found in runtime_constraints of a job
331   default_docker_image_for_jobs: false
332
333   # Hostname to assign to a compute node when it sends a "ping" and the
334   # hostname in its Node record is nil.
335   # During bootstrapping, the "ping" script is expected to notice the
336   # hostname given in the ping response, and update its unix hostname
337   # accordingly.
338   # If false, leave the hostname alone (this is appropriate if your compute
339   # nodes' hostnames are already assigned by some other mechanism).
340   #
341   # One way or another, the hostnames of your node records should agree
342   # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
343   #
344   # Example for compute0000, compute0001, ....:
345   # assign_node_hostname: compute%<slot_number>04d
346   # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
347   assign_node_hostname: compute%<slot_number>d