572a2558eda3c291463e56515c0e1583c2a4adc7
[arvados.git] / lib / config / config.default.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Do not use this file for site configuration. Create
6 # /etc/arvados/config.yml instead.
7 #
8 # The order of precedence (highest to lowest):
9 # 1. Legacy component-specific config files (deprecated)
10 # 2. /etc/arvados/config.yml
11 # 3. config.default.yml
12
13 Clusters:
14   xxxxx:
15     SystemRootToken: ""
16
17     # Token to be included in all healthcheck requests. Disabled by default.
18     # Server expects request header of the format "Authorization: Bearer xxx"
19     ManagementToken: ""
20
21     Services:
22
23       # In each of the service sections below, the keys under
24       # InternalURLs are the endpoints where the service should be
25       # listening, and reachable from other hosts in the cluster.
26       SAMPLE:
27         InternalURLs:
28           "http://host1.example:12345": {}
29           "http://host2.example:12345":
30             # Rendezvous is normally empty/omitted. When changing the
31             # URL of a Keepstore service, Rendezvous should be set to
32             # the old URL (with trailing slash omitted) to preserve
33             # rendezvous ordering.
34             Rendezvous: ""
35           SAMPLE:
36             Rendezvous: ""
37         ExternalURL: "-"
38
39       RailsAPI:
40         InternalURLs: {}
41         ExternalURL: "-"
42       Controller:
43         InternalURLs: {}
44         ExternalURL: ""
45       Websocket:
46         InternalURLs: {}
47         ExternalURL: ""
48       Keepbalance:
49         InternalURLs: {}
50         ExternalURL: "-"
51       GitHTTP:
52         InternalURLs: {}
53         ExternalURL: ""
54       GitSSH:
55         InternalURLs: {}
56         ExternalURL: ""
57       DispatchCloud:
58         InternalURLs: {}
59         ExternalURL: "-"
60       SSO:
61         InternalURLs: {}
62         ExternalURL: ""
63       Keepproxy:
64         InternalURLs: {}
65         ExternalURL: ""
66       WebDAV:
67         InternalURLs: {}
68         # Base URL for Workbench inline preview.  If blank, use
69         # WebDAVDownload instead, and disable inline preview.
70         # If both are empty, downloading collections from workbench
71         # will be impossible.
72         #
73         # It is important to properly configure the download service
74         # to migitate cross-site-scripting (XSS) attacks.  A HTML page
75         # can be stored in collection.  If an attacker causes a victim
76         # to visit that page through Workbench, it will be rendered by
77         # the browser.  If all collections are served at the same
78         # domain, the browser will consider collections as coming from
79         # the same origin and having access to the same browsing data,
80         # enabling malicious Javascript on that page to access Arvados
81         # on behalf of the victim.
82         #
83         # This is mitigating by having separate domains for each
84         # collection, or limiting preview to circumstances where the
85         # collection is not accessed with the user's regular
86         # full-access token.
87         #
88         # Serve preview links using uuid or pdh in subdomain
89         # (requires wildcard DNS and TLS certificate)
90         #   https://*.collections.uuid_prefix.arvadosapi.com
91         #
92         # Serve preview links using uuid or pdh in main domain
93         # (requires wildcard DNS and TLS certificate)
94         #   https://*--collections.uuid_prefix.arvadosapi.com
95         #
96         # Serve preview links by setting uuid or pdh in the path.
97         # This configuration only allows previews of public data or
98         # collection-sharing links, because these use the anonymous
99         # user token or the token is already embedded in the URL.
100         # Other data must be handled as downloads via WebDAVDownload:
101         #   https://collections.uuid_prefix.arvadosapi.com
102         #
103         ExternalURL: ""
104
105       WebDAVDownload:
106         InternalURLs: {}
107         # Base URL for download links. If blank, serve links to WebDAV
108         # with disposition=attachment query param.  Unlike preview links,
109         # browsers do not render attachments, so there is no risk of XSS.
110         #
111         # If WebDAVDownload is blank, and WebDAV uses a
112         # single-origin form, then Workbench will show an error page
113         #
114         # Serve download links by setting uuid or pdh in the path:
115         #   https://download.uuid_prefix.arvadosapi.com
116         #
117         ExternalURL: ""
118
119       Keepstore:
120         InternalURLs: {}
121         ExternalURL: "-"
122       Composer:
123         InternalURLs: {}
124         ExternalURL: ""
125       WebShell:
126         InternalURLs: {}
127         # ShellInABox service endpoint URL for a given VM.  If empty, do not
128         # offer web shell logins.
129         #
130         # E.g., using a path-based proxy server to forward connections to shell hosts:
131         # https://webshell.uuid_prefix.arvadosapi.com
132         #
133         # E.g., using a name-based proxy server to forward connections to shell hosts:
134         # https://*.webshell.uuid_prefix.arvadosapi.com
135         ExternalURL: ""
136       Workbench1:
137         InternalURLs: {}
138         ExternalURL: ""
139       Workbench2:
140         InternalURLs: {}
141         ExternalURL: ""
142       Nodemanager:
143         InternalURLs: {}
144         ExternalURL: "-"
145       Health:
146         InternalURLs: {}
147         ExternalURL: "-"
148
149     PostgreSQL:
150       # max concurrent connections per arvados server daemon
151       ConnectionPool: 32
152       Connection:
153         # All parameters here are passed to the PG client library in a connection string;
154         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
155         host: ""
156         port: ""
157         user: ""
158         password: ""
159         dbname: ""
160         SAMPLE: ""
161     API:
162       # Maximum size (in bytes) allowed for a single API request.  This
163       # limit is published in the discovery document for use by clients.
164       # Note: You must separately configure the upstream web server or
165       # proxy to actually enforce the desired maximum request size on the
166       # server side.
167       MaxRequestSize: 134217728
168
169       # Limit the number of bytes read from the database during an index
170       # request (by retrieving and returning fewer rows than would
171       # normally be returned in a single response).
172       # Note 1: This setting never reduces the number of returned rows to
173       # zero, no matter how big the first data row is.
174       # Note 2: Currently, this is only checked against a specific set of
175       # columns that tend to get large (collections.manifest_text,
176       # containers.mounts, workflows.definition). Other fields (e.g.,
177       # "properties" hashes) are not counted against this limit.
178       MaxIndexDatabaseRead: 134217728
179
180       # Maximum number of items to return when responding to a APIs that
181       # can return partial result sets using limit and offset parameters
182       # (e.g., *.index, groups.contents). If a request specifies a "limit"
183       # parameter higher than this value, this value is used instead.
184       MaxItemsPerResponse: 1000
185
186       # Maximum number of concurrent requests to accept in a single
187       # service process, or 0 for no limit. Currently supported only
188       # by keepstore.
189       MaxConcurrentRequests: 0
190
191       # Maximum number of 64MiB memory buffers per keepstore server
192       # process, or 0 for no limit.
193       MaxKeepBlobBuffers: 128
194
195       # API methods to disable. Disabled methods are not listed in the
196       # discovery document, and respond 404 to all requests.
197       # Example: {"jobs.create":{}, "pipeline_instances.create": {}}
198       DisabledAPIs: {}
199
200       # Interval (seconds) between asynchronous permission view updates. Any
201       # permission-updating API called with the 'async' parameter schedules a an
202       # update on the permission view in the future, if not already scheduled.
203       AsyncPermissionsUpdateInterval: 20s
204
205       # Maximum number of concurrent outgoing requests to make while
206       # serving a single incoming multi-cluster (federated) request.
207       MaxRequestAmplification: 4
208
209       # RailsSessionSecretToken is a string of alphanumeric characters
210       # used by Rails to sign session tokens. IMPORTANT: This is a
211       # site secret. It should be at least 50 characters.
212       RailsSessionSecretToken: ""
213
214       # Maximum wall clock time to spend handling an incoming request.
215       RequestTimeout: 5m
216
217       # Websocket will send a periodic empty event after 'SendTimeout'
218       # if there is no other activity to maintain the connection /
219       # detect dropped connections.
220       SendTimeout: 60s
221
222       WebsocketClientEventQueue: 64
223       WebsocketServerEventQueue: 4
224
225       # Timeout on requests to internal Keep services.
226       KeepServiceRequestTimeout: 15s
227
228     Users:
229       # Config parameters to automatically setup new users.  If enabled,
230       # this users will be able to self-activate.  Enable this if you want
231       # to run an open instance where anyone can create an account and use
232       # the system without requiring manual approval.
233       #
234       # The params AutoSetupNewUsersWith* are meaningful only when AutoSetupNewUsers is turned on.
235       # AutoSetupUsernameBlacklist is a list of usernames to be blacklisted for auto setup.
236       AutoSetupNewUsers: false
237       AutoSetupNewUsersWithVmUUID: ""
238       AutoSetupNewUsersWithRepository: false
239       AutoSetupUsernameBlacklist:
240         arvados: {}
241         git: {}
242         gitolite: {}
243         gitolite-admin: {}
244         root: {}
245         syslog: {}
246         SAMPLE: {}
247
248       # When NewUsersAreActive is set to true, new users will be active
249       # immediately.  This skips the "self-activate" step which enforces
250       # user agreements.  Should only be enabled for development.
251       NewUsersAreActive: false
252
253       # The e-mail address of the user you would like to become marked as an admin
254       # user on their first login.
255       # In the default configuration, authentication happens through the Arvados SSO
256       # server, which uses OAuth2 against Google's servers, so in that case this
257       # should be an address associated with a Google account.
258       AutoAdminUserWithEmail: ""
259
260       # If AutoAdminFirstUser is set to true, the first user to log in when no
261       # other admin users exist will automatically become an admin user.
262       AutoAdminFirstUser: false
263
264       # Email address to notify whenever a user creates a profile for the
265       # first time
266       UserProfileNotificationAddress: ""
267       AdminNotifierEmailFrom: arvados@example.com
268       EmailSubjectPrefix: "[ARVADOS] "
269       UserNotifierEmailFrom: arvados@example.com
270       NewUserNotificationRecipients: {}
271       NewInactiveUserNotificationRecipients: {}
272
273       # Set AnonymousUserToken to enable anonymous user access. You can get
274       # the token by running "bundle exec ./script/get_anonymous_user_token.rb"
275       # in the directory where your API server is running.
276       AnonymousUserToken: ""
277
278     AuditLogs:
279       # Time to keep audit logs, in seconds. (An audit log is a row added
280       # to the "logs" table in the PostgreSQL database each time an
281       # Arvados object is created, modified, or deleted.)
282       #
283       # Currently, websocket event notifications rely on audit logs, so
284       # this should not be set lower than 300 (5 minutes).
285       MaxAge: 336h
286
287       # Maximum number of log rows to delete in a single SQL transaction.
288       #
289       # If MaxDeleteBatch is 0, log entries will never be
290       # deleted by Arvados. Cleanup can be done by an external process
291       # without affecting any Arvados system processes, as long as very
292       # recent (<5 minutes old) logs are not deleted.
293       #
294       # 100000 is a reasonable batch size for most sites.
295       MaxDeleteBatch: 0
296
297       # Attributes to suppress in events and audit logs.  Notably,
298       # specifying {"manifest_text": {}} here typically makes the database
299       # smaller and faster.
300       #
301       # Warning: Using any non-empty value here can have undesirable side
302       # effects for any client or component that relies on event logs.
303       # Use at your own risk.
304       UnloggedAttributes: {}
305
306     SystemLogs:
307
308       # Logging threshold: panic, fatal, error, warn, info, debug, or
309       # trace
310       LogLevel: info
311
312       # Logging format: json or text
313       Format: json
314
315       # Maximum characters of (JSON-encoded) query parameters to include
316       # in each request log entry. When params exceed this size, they will
317       # be JSON-encoded, truncated to this size, and logged as
318       # params_truncated.
319       MaxRequestLogParamsSize: 2000
320
321     Collections:
322
323       # Enable access controls for data stored in Keep. This should
324       # always be set to true on a production cluster.
325       BlobSigning: true
326
327       # BlobSigningKey is a string of alphanumeric characters used to
328       # generate permission signatures for Keep locators. It must be
329       # identical to the permission key given to Keep. IMPORTANT: This
330       # is a site secret. It should be at least 50 characters.
331       #
332       # Modifying BlobSigningKey will invalidate all existing
333       # signatures, which can cause programs to fail (e.g., arv-put,
334       # arv-get, and Crunch jobs).  To avoid errors, rotate keys only
335       # when no such processes are running.
336       BlobSigningKey: ""
337
338       # Enable garbage collection of unreferenced blobs in Keep.
339       BlobTrash: true
340
341       # Time to leave unreferenced blobs in "trashed" state before
342       # deleting them, or 0 to skip the "trashed" state entirely and
343       # delete unreferenced blobs.
344       #
345       # If you use any Amazon S3 buckets as storage volumes, this
346       # must be at least 24h to avoid occasional data loss.
347       BlobTrashLifetime: 336h
348
349       # How often to check for (and delete) trashed blocks whose
350       # BlobTrashLifetime has expired.
351       BlobTrashCheckInterval: 24h
352
353       # Maximum number of concurrent "trash blob" and "delete trashed
354       # blob" operations conducted by a single keepstore process. Each
355       # of these can be set to 0 to disable the respective operation.
356       #
357       # If BlobTrashLifetime is zero, "trash" and "delete trash"
358       # happen at once, so only the lower of these two values is used.
359       BlobTrashConcurrency: 4
360       BlobDeleteConcurrency: 4
361
362       # Maximum number of concurrent "create additional replica of
363       # existing blob" operations conducted by a single keepstore
364       # process.
365       BlobReplicateConcurrency: 4
366
367       # Default replication level for collections. This is used when a
368       # collection's replication_desired attribute is nil.
369       DefaultReplication: 2
370
371       # Lifetime (in seconds) of blob permission signatures generated by
372       # the API server. This determines how long a client can take (after
373       # retrieving a collection record) to retrieve the collection data
374       # from Keep. If the client needs more time than that (assuming the
375       # collection still has the same content and the relevant user/token
376       # still has permission) the client can retrieve the collection again
377       # to get fresh signatures.
378       #
379       # Modifying BlobSigningTTL invalidates existing signatures; see
380       # BlobSigningKey note above.
381       #
382       # The default is 2 weeks.
383       BlobSigningTTL: 336h
384
385       # Default lifetime for ephemeral collections: 2 weeks. This must not
386       # be less than BlobSigningTTL.
387       DefaultTrashLifetime: 336h
388
389       # Interval (seconds) between trash sweeps. During a trash sweep,
390       # collections are marked as trash if their trash_at time has
391       # arrived, and deleted if their delete_at time has arrived.
392       TrashSweepInterval: 60s
393
394       # If true, enable collection versioning.
395       # When a collection's preserve_version field is true or the current version
396       # is older than the amount of seconds defined on PreserveVersionIfIdle,
397       # a snapshot of the collection's previous state is created and linked to
398       # the current collection.
399       CollectionVersioning: false
400
401       #   0s = auto-create a new version on every update.
402       #  -1s = never auto-create new versions.
403       # > 0s = auto-create a new version when older than the specified number of seconds.
404       PreserveVersionIfIdle: -1s
405
406       # Managed collection properties. At creation time, if the client didn't
407       # provide the listed keys, they will be automatically populated following
408       # one of the following behaviors:
409       #
410       # * UUID of the user who owns the containing project.
411       #   responsible_person_uuid: {Function: original_owner, Protected: true}
412       #
413       # * Default concrete value.
414       #   foo_bar: {Value: baz, Protected: false}
415       #
416       # If Protected is true, only an admin user can modify its value.
417       ManagedProperties:
418         SAMPLE: {Function: original_owner, Protected: true}
419
420       # In "trust all content" mode, Workbench will redirect download
421       # requests to WebDAV preview link, even in the cases when
422       # WebDAV would have to expose XSS vulnerabilities in order to
423       # handle the redirect (see discussion on Services.WebDAV).
424       #
425       # This setting has no effect in the recommended configuration,
426       # where the WebDAV is configured to have a separate domain for
427       # every collection; in this case XSS protection is provided by
428       # browsers' same-origin policy.
429       #
430       # The default setting (false) is appropriate for a multi-user site.
431       TrustAllContent: false
432
433       # Cache parameters for WebDAV content serving:
434       # * TTL: Maximum time to cache manifests and permission checks.
435       # * UUIDTTL: Maximum time to cache collection state.
436       # * MaxBlockEntries: Maximum number of block cache entries.
437       # * MaxCollectionEntries: Maximum number of collection cache entries.
438       # * MaxCollectionBytes: Approximate memory limit for collection cache.
439       # * MaxPermissionEntries: Maximum number of permission cache entries.
440       # * MaxUUIDEntries: Maximum number of UUID cache entries.
441       WebDAVCache:
442         TTL: 300s
443         UUIDTTL: 5s
444         MaxBlockEntries:      4
445         MaxCollectionEntries: 1000
446         MaxCollectionBytes:   100000000
447         MaxPermissionEntries: 1000
448         MaxUUIDEntries:       1000
449
450     Login:
451       # These settings are provided by your OAuth2 provider (eg
452       # Google) used to perform upstream authentication.
453       ProviderAppSecret: ""
454       ProviderAppID: ""
455
456       # The cluster ID to delegate the user database.  When set,
457       # logins on this cluster will be redirected to the login cluster
458       # (login cluster must appear in RemoteHosts with Proxy: true)
459       LoginCluster: ""
460
461       # How long a cached token belonging to a remote cluster will
462       # remain valid before it needs to be revalidated.
463       RemoteTokenRefresh: 5m
464
465     Git:
466       # Path to git or gitolite-shell executable. Each authenticated
467       # request will execute this program with the single argument "http-backend"
468       GitCommand: /usr/bin/git
469
470       # Path to Gitolite's home directory. If a non-empty path is given,
471       # the CGI environment will be set up to support the use of
472       # gitolite-shell as a GitCommand: for example, if GitoliteHome is
473       # "/gh", then the CGI environment will have GITOLITE_HTTP_HOME=/gh,
474       # PATH=$PATH:/gh/bin, and GL_BYPASS_ACCESS_CHECKS=1.
475       GitoliteHome: ""
476
477       # Git repositories must be readable by api server, or you won't be
478       # able to submit crunch jobs. To pass the test suites, put a clone
479       # of the arvados tree in {git_repositories_dir}/arvados.git or
480       # {git_repositories_dir}/arvados/.git
481       Repositories: /var/lib/arvados/git/repositories
482
483     TLS:
484       Certificate: ""
485       Key: ""
486       Insecure: false
487
488     Containers:
489       # List of supported Docker Registry image formats that compute nodes
490       # are able to use. `arv keep docker` will error out if a user tries
491       # to store an image with an unsupported format. Use an empty array
492       # to skip the compatibility check (and display a warning message to
493       # that effect).
494       #
495       # Example for sites running docker < 1.10: {"v1": {}}
496       # Example for sites running docker >= 1.10: {"v2": {}}
497       # Example for disabling check: {}
498       SupportedDockerImageFormats:
499         "v2": {}
500         SAMPLE: {}
501
502       # Include details about job reuse decisions in the server log. This
503       # causes additional database queries to run, so it should not be
504       # enabled unless you expect to examine the resulting logs for
505       # troubleshooting purposes.
506       LogReuseDecisions: false
507
508       # Default value for keep_cache_ram of a container's runtime_constraints.
509       DefaultKeepCacheRAM: 268435456
510
511       # Number of times a container can be unlocked before being
512       # automatically cancelled.
513       MaxDispatchAttempts: 5
514
515       # Default value for container_count_max for container requests.  This is the
516       # number of times Arvados will create a new container to satisfy a container
517       # request.  If a container is cancelled it will retry a new container if
518       # container_count < container_count_max on any container requests associated
519       # with the cancelled container.
520       MaxRetryAttempts: 3
521
522       # The maximum number of compute nodes that can be in use simultaneously
523       # If this limit is reduced, any existing nodes with slot number >= new limit
524       # will not be counted against the new limit. In other words, the new limit
525       # won't be strictly enforced until those nodes with higher slot numbers
526       # go down.
527       MaxComputeVMs: 64
528
529       # Preemptible instance support (e.g. AWS Spot Instances)
530       # When true, child containers will get created with the preemptible
531       # scheduling parameter parameter set.
532       UsePreemptibleInstances: false
533
534       # PEM encoded SSH key (RSA, DSA, or ECDSA) used by the
535       # (experimental) cloud dispatcher for executing containers on
536       # worker VMs. Begins with "-----BEGIN RSA PRIVATE KEY-----\n"
537       # and ends with "\n-----END RSA PRIVATE KEY-----\n".
538       DispatchPrivateKey: none
539
540       # Maximum time to wait for workers to come up before abandoning
541       # stale locks from a previous dispatch process.
542       StaleLockTimeout: 1m
543
544       # The crunch-run command to manage the container on a node
545       CrunchRunCommand: "crunch-run"
546
547       # Extra arguments to add to crunch-run invocation
548       # Example: ["--cgroup-parent-subsystem=memory"]
549       CrunchRunArgumentsList: []
550
551       # Extra RAM to reserve on the node, in addition to
552       # the amount specified in the container's RuntimeConstraints
553       ReserveExtraRAM: 256MiB
554
555       # Minimum time between two attempts to run the same container
556       MinRetryPeriod: 0s
557
558       Logging:
559         # When you run the db:delete_old_container_logs task, it will find
560         # containers that have been finished for at least this many seconds,
561         # and delete their stdout, stderr, arv-mount, crunch-run, and
562         # crunchstat logs from the logs table.
563         MaxAge: 720h
564
565         # These two settings control how frequently log events are flushed to the
566         # database.  Log lines are buffered until either crunch_log_bytes_per_event
567         # has been reached or crunch_log_seconds_between_events has elapsed since
568         # the last flush.
569         LogBytesPerEvent: 4096
570         LogSecondsBetweenEvents: 1
571
572         # The sample period for throttling logs.
573         LogThrottlePeriod: 60s
574
575         # Maximum number of bytes that job can log over crunch_log_throttle_period
576         # before being silenced until the end of the period.
577         LogThrottleBytes: 65536
578
579         # Maximum number of lines that job can log over crunch_log_throttle_period
580         # before being silenced until the end of the period.
581         LogThrottleLines: 1024
582
583         # Maximum bytes that may be logged by a single job.  Log bytes that are
584         # silenced by throttling are not counted against this total.
585         LimitLogBytesPerJob: 67108864
586
587         LogPartialLineThrottlePeriod: 5s
588
589         # Container logs are written to Keep and saved in a
590         # collection, which is updated periodically while the
591         # container runs.  This value sets the interval between
592         # collection updates.
593         LogUpdatePeriod: 30m
594
595         # The log collection is also updated when the specified amount of
596         # log data (given in bytes) is produced in less than one update
597         # period.
598         LogUpdateSize: 32MiB
599
600       SLURM:
601         PrioritySpread: 0
602         SbatchArgumentsList: []
603         SbatchEnvironmentVariables:
604           SAMPLE: ""
605         Managed:
606           # Path to dns server configuration directory
607           # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
608           # files or touch restart.txt (see below).
609           DNSServerConfDir: ""
610
611           # Template file for the dns server host snippets. See
612           # unbound.template in this directory for an example. If false, do
613           # not write any config files.
614           DNSServerConfTemplate: ""
615
616           # String to write to {dns_server_conf_dir}/restart.txt (with a
617           # trailing newline) after updating local data. If false, do not
618           # open or write the restart.txt file.
619           DNSServerReloadCommand: ""
620
621           # Command to run after each DNS update. Template variables will be
622           # substituted; see the "unbound" example below. If false, do not run
623           # a command.
624           DNSServerUpdateCommand: ""
625
626           ComputeNodeDomain: ""
627           ComputeNodeNameservers:
628             "192.168.1.1": {}
629             SAMPLE: {}
630
631           # Hostname to assign to a compute node when it sends a "ping" and the
632           # hostname in its Node record is nil.
633           # During bootstrapping, the "ping" script is expected to notice the
634           # hostname given in the ping response, and update its unix hostname
635           # accordingly.
636           # If false, leave the hostname alone (this is appropriate if your compute
637           # nodes' hostnames are already assigned by some other mechanism).
638           #
639           # One way or another, the hostnames of your node records should agree
640           # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
641           #
642           # Example for compute0000, compute0001, ....:
643           # assign_node_hostname: compute%<slot_number>04d
644           # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
645           AssignNodeHostname: "compute%<slot_number>d"
646
647       JobsAPI:
648         # Enable the legacy 'jobs' API (crunch v1).  This value must be a string.
649         #
650         # Note: this only enables read-only access, creating new
651         # legacy jobs and pipelines is not supported.
652         #
653         # 'auto' -- (default) enable the Jobs API only if it has been used before
654         #         (i.e., there are job records in the database)
655         # 'true' -- enable the Jobs API despite lack of existing records.
656         # 'false' -- disable the Jobs API despite presence of existing records.
657         Enable: 'auto'
658
659         # Git repositories must be readable by api server, or you won't be
660         # able to submit crunch jobs. To pass the test suites, put a clone
661         # of the arvados tree in {git_repositories_dir}/arvados.git or
662         # {git_repositories_dir}/arvados/.git
663         GitInternalDir: /var/lib/arvados/internal.git
664
665       CloudVMs:
666         # Enable the cloud scheduler (experimental).
667         Enable: false
668
669         # Name/number of port where workers' SSH services listen.
670         SSHPort: "22"
671
672         # Interval between queue polls.
673         PollInterval: 10s
674
675         # Shell command to execute on each worker to determine whether
676         # the worker is booted and ready to run containers. It should
677         # exit zero if the worker is ready.
678         BootProbeCommand: "docker ps -q"
679
680         # Minimum interval between consecutive probes to a single
681         # worker.
682         ProbeInterval: 10s
683
684         # Maximum probes per second, across all workers in a pool.
685         MaxProbesPerSecond: 10
686
687         # Time before repeating SIGTERM when killing a container.
688         TimeoutSignal: 5s
689
690         # Time to give up on SIGTERM and write off the worker.
691         TimeoutTERM: 2m
692
693         # Maximum create/destroy-instance operations per second (0 =
694         # unlimited).
695         MaxCloudOpsPerSecond: 0
696
697         # Interval between cloud provider syncs/updates ("list all
698         # instances").
699         SyncInterval: 1m
700
701         # Time to leave an idle worker running (in case new containers
702         # appear in the queue that it can run) before shutting it
703         # down.
704         TimeoutIdle: 1m
705
706         # Time to wait for a new worker to boot (i.e., pass
707         # BootProbeCommand) before giving up and shutting it down.
708         TimeoutBooting: 10m
709
710         # Maximum time a worker can stay alive with no successful
711         # probes before being automatically shut down.
712         TimeoutProbe: 10m
713
714         # Time after shutting down a worker to retry the
715         # shutdown/destroy operation.
716         TimeoutShutdown: 10s
717
718         # Worker VM image ID.
719         ImageID: ""
720
721         # Tags to add on all resources (VMs, NICs, disks) created by
722         # the container dispatcher. (Arvados's own tags --
723         # InstanceType, IdleBehavior, and InstanceSecret -- will also
724         # be added.)
725         ResourceTags:
726           SAMPLE: "tag value"
727
728         # Prefix for predefined tags used by Arvados (InstanceSetID,
729         # InstanceType, InstanceSecret, IdleBehavior). With the
730         # default value "Arvados", tags are "ArvadosInstanceSetID",
731         # "ArvadosInstanceSecret", etc.
732         #
733         # This should only be changed while no cloud resources are in
734         # use and the cloud dispatcher is not running. Otherwise,
735         # VMs/resources that were added using the old tag prefix will
736         # need to be detected and cleaned up manually.
737         TagKeyPrefix: Arvados
738
739         # Cloud driver: "azure" (Microsoft Azure) or "ec2" (Amazon AWS).
740         Driver: ec2
741
742         # Cloud-specific driver parameters.
743         DriverParameters:
744
745           # (ec2) Credentials.
746           AccessKeyID: ""
747           SecretAccessKey: ""
748
749           # (ec2) Instance configuration.
750           SecurityGroupIDs:
751             "SAMPLE": {}
752           SubnetID: ""
753           Region: ""
754           EBSVolumeType: gp2
755           AdminUsername: debian
756
757           # (azure) Credentials.
758           SubscriptionID: ""
759           ClientID: ""
760           ClientSecret: ""
761           TenantID: ""
762
763           # (azure) Instance configuration.
764           CloudEnvironment: AzurePublicCloud
765           ResourceGroup: ""
766           Location: centralus
767           Network: ""
768           Subnet: ""
769           StorageAccount: ""
770           BlobContainer: ""
771           DeleteDanglingResourcesAfter: 20s
772           AdminUsername: arvados
773
774     InstanceTypes:
775
776       # Use the instance type name as the key (in place of "SAMPLE" in
777       # this sample entry).
778       SAMPLE:
779         # Cloud provider's instance type. Defaults to the configured type name.
780         ProviderType: ""
781         VCPUs: 1
782         RAM: 128MiB
783         IncludedScratch: 16GB
784         AddedScratch: 0
785         Price: 0.1
786         Preemptible: false
787
788     Volumes:
789       SAMPLE:
790         # AccessViaHosts specifies which keepstore processes can read
791         # and write data on the volume.
792         #
793         # For a local filesystem, AccessViaHosts has one entry,
794         # indicating which server the filesystem is located on.
795         #
796         # For a network-attached backend accessible by all keepstore
797         # servers, like a cloud storage bucket or an NFS mount,
798         # AccessViaHosts can be empty/omitted.
799         #
800         # Further info/examples:
801         # https://doc.arvados.org/install/configure-fs-storage.html
802         # https://doc.arvados.org/install/configure-s3-object-storage.html
803         # https://doc.arvados.org/install/configure-azure-blob-storage.html
804         AccessViaHosts:
805           SAMPLE:
806             ReadOnly: false
807           "http://host1.example:25107": {}
808         ReadOnly: false
809         Replication: 1
810         StorageClasses:
811           default: true
812           SAMPLE: true
813         Driver: s3
814         DriverParameters:
815
816           # for s3 driver -- see
817           # https://doc.arvados.org/install/configure-s3-object-storage.html
818           AccessKey: aaaaa
819           SecretKey: aaaaa
820           Endpoint: ""
821           Region: us-east-1a
822           Bucket: aaaaa
823           LocationConstraint: false
824           IndexPageSize: 1000
825           ConnectTimeout: 1m
826           ReadTimeout: 10m
827           RaceWindow: 24h
828           UnsafeDelete: false
829
830           # for azure driver -- see
831           # https://doc.arvados.org/install/configure-azure-blob-storage.html
832           StorageAccountName: aaaaa
833           StorageAccountKey: aaaaa
834           StorageBaseURL: core.windows.net
835           ContainerName: aaaaa
836           RequestTimeout: 30s
837           ListBlobsRetryDelay: 10s
838           ListBlobsMaxAttempts: 10
839           MaxGetBytes: 0
840           WriteRaceInterval: 15s
841           WriteRacePollTime: 1s
842
843           # for local directory driver -- see
844           # https://doc.arvados.org/install/configure-fs-storage.html
845           Root: /var/lib/arvados/keep-data
846           Serialize: false
847
848     Mail:
849       MailchimpAPIKey: ""
850       MailchimpListID: ""
851       SendUserSetupNotificationEmail: true
852
853       # Bug/issue report notification to and from addresses
854       IssueReporterEmailFrom: "arvados@example.com"
855       IssueReporterEmailTo: "arvados@example.com"
856       SupportEmailAddress: "arvados@example.com"
857
858       # Generic issue email from
859       EmailFrom: "arvados@example.com"
860     RemoteClusters:
861       "*":
862         Host: ""
863         Proxy: false
864         Scheme: https
865         Insecure: false
866         ActivateUsers: false
867       SAMPLE:
868         # API endpoint host or host:port; default is {id}.arvadosapi.com
869         Host: sample.arvadosapi.com
870
871         # Perform a proxy request when a local client requests an
872         # object belonging to this remote.
873         Proxy: false
874
875         # Default "https". Can be set to "http" for testing.
876         Scheme: https
877
878         # Disable TLS verify. Can be set to true for testing.
879         Insecure: false
880
881         # When users present tokens issued by this remote cluster, and
882         # their accounts are active on the remote cluster, activate
883         # them on this cluster too.
884         ActivateUsers: false
885
886     Workbench:
887       # Workbench1 configs
888       Theme: default
889       ActivationContactLink: mailto:info@arvados.org
890       ArvadosDocsite: https://doc.arvados.org
891       ArvadosPublicDataDocURL: https://playground.arvados.org/projects/public
892       ShowUserAgreementInline: false
893       SecretKeyBase: ""
894
895       # Scratch directory used by the remote repository browsing
896       # feature. If it doesn't exist, it (and any missing parents) will be
897       # created using mkdir_p.
898       RepositoryCache: /var/www/arvados-workbench/current/tmp/git
899
900       # Below is a sample setting of user_profile_form_fields config parameter.
901       # This configuration parameter should be set to either false (to disable) or
902       # to a map as shown below.
903       # Configure the map of input fields to be displayed in the profile page
904       # using the attribute "key" for each of the input fields.
905       # This sample shows configuration with one required and one optional form fields.
906       # For each of these input fields:
907       #   You can specify "Type" as "text" or "select".
908       #   List the "Options" to be displayed for each of the "select" menu.
909       #   Set "Required" as "true" for any of these fields to make them required.
910       # If any of the required fields are missing in the user's profile, the user will be
911       # redirected to the profile page before they can access any Workbench features.
912       UserProfileFormFields:
913         SAMPLE:
914           Type: select
915           FormFieldTitle: Best color
916           FormFieldDescription: your favorite color
917           Required: false
918           Position: 1
919           Options:
920             red: {}
921             blue: {}
922             green: {}
923             SAMPLE: {}
924
925         # exampleTextValue:  # key that will be set in properties
926         #   Type: text  #
927         #   FormFieldTitle: ""
928         #   FormFieldDescription: ""
929         #   Required: true
930         #   Position: 1
931         # exampleOptionsValue:
932         #   Type: select
933         #   FormFieldTitle: ""
934         #   FormFieldDescription: ""
935         #   Required: true
936         #   Position: 1
937         #   Options:
938         #     red: {}
939         #     blue: {}
940         #     yellow: {}
941
942       # Use "UserProfileFormMessage to configure the message you want
943       # to display on the profile page.
944       UserProfileFormMessage: 'Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.'
945
946       # Mimetypes of applications for which the view icon
947       # would be enabled in a collection's show page.
948       # It is sufficient to list only applications here.
949       # No need to list text and image types.
950       ApplicationMimetypesWithViewIcon:
951         cwl: {}
952         fasta: {}
953         go: {}
954         javascript: {}
955         json: {}
956         pdf: {}
957         python: {}
958         x-python: {}
959         r: {}
960         rtf: {}
961         sam: {}
962         x-sh: {}
963         vnd.realvnc.bed: {}
964         xml: {}
965         xsl: {}
966         SAMPLE: {}
967
968       # The maximum number of bytes to load in the log viewer
969       LogViewerMaxBytes: 1M
970
971       # When anonymous_user_token is configured, show public projects page
972       EnablePublicProjectsPage: true
973
974       # By default, disable the "Getting Started" popup which is specific to Arvados playground
975       EnableGettingStartedPopup: false
976
977       # Ask Arvados API server to compress its response payloads.
978       APIResponseCompression: true
979
980       # Timeouts for API requests.
981       APIClientConnectTimeout: 2m
982       APIClientReceiveTimeout: 5m
983
984       # Maximum number of historic log records of a running job to fetch
985       # and display in the Log tab, while subscribing to web sockets.
986       RunningJobLogRecordsToFetch: 2000
987
988       # In systems with many shared projects, loading of dashboard and topnav
989       # cab be slow due to collections indexing; use the following parameters
990       # to suppress these properties
991       ShowRecentCollectionsOnDashboard: true
992       ShowUserNotifications: true
993
994       # Enable/disable "multi-site search" in top nav ("true"/"false"), or
995       # a link to the multi-site search page on a "home" Workbench site.
996       #
997       # Example:
998       #   https://workbench.qr1hi.arvadosapi.com/collections/multisite
999       MultiSiteSearch: ""
1000
1001       # Should workbench allow management of local git repositories? Set to false if
1002       # the jobs api is disabled and there are no local git repositories.
1003       Repositories: true
1004
1005       SiteName: Arvados Workbench
1006       ProfilingEnabled: false
1007
1008       # This is related to obsolete Google OpenID 1.0 login
1009       # but some workbench stuff still expects it to be set.
1010       DefaultOpenIdPrefix: "https://www.google.com/accounts/o8/id"
1011
1012       # Workbench2 configs
1013       VocabularyURL: ""
1014       FileViewersConfigURL: ""
1015
1016     # Use experimental controller code (see https://dev.arvados.org/issues/14287)
1017     EnableBetaController14287: false