4084: Should be able to write tests against websocket-based functionality now.
[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   websocket_address: ws://127.0.0.1:3333/websocket
49
50 common:
51   uuid_prefix: <%= Digest::MD5.hexdigest(`hostname`).to_i(16).to_s(36)[0..4] %>
52
53   # If this is not false, HTML requests at the API server's root URL
54   # are redirected to this location, and it is provided in the text of
55   # user activation notification email messages to remind them where
56   # to log in.
57   workbench_address: false
58
59   # Git repositories must be readable by api server, or you won't be
60   # able to submit crunch jobs. To pass the test suites, put a clone
61   # of the arvados tree in {git_repositories_dir}/arvados.git or
62   # {git_repositories_dir}/arvados/.git
63   git_repositories_dir: /var/lib/arvados/git
64
65   # This is a (bare) repository that stores commits used in jobs.  When a job
66   # runs, the source commits are first fetched into this repository, then this
67   # repository is used to deploy to compute nodes.  This should NOT be a
68   # subdirectory of {git_repositiories_dir}.
69   git_internal_dir: /var/lib/arvados/internal.git
70
71   # :none or :slurm_immediate
72   crunch_job_wrapper: :none
73
74   # username, or false = do not set uid when running jobs.
75   crunch_job_user: crunch
76
77   # The web service must be able to create/write this file, and
78   # crunch-job must be able to stat() it.
79   crunch_refresh_trigger: /tmp/crunch_refresh_trigger
80
81   # Maximum number of log events that may be generated by a single job.
82   crunch_limit_log_events_per_job: 65536
83
84   # These two settings control how frequently log events are flushed to the
85   # database.  Log lines are buffered until either crunch_log_bytes_per_event
86   # has been reached or crunch_log_seconds_between_events has elapsed since
87   # the last flush.
88   crunch_log_bytes_per_event: 4096
89   crunch_log_seconds_between_events: 1
90
91   # The sample period for throttling logs, in seconds.
92   crunch_log_throttle_period: 60
93
94   # Maximum number of bytes that job can log over crunch_log_throttle_period
95   # before being silenced until the end of the period.
96   crunch_log_throttle_bytes: 65536
97
98   # Maximum number of lines that job can log over crunch_log_throttle_period
99   # before being silenced until the end of the period.
100   crunch_log_throttle_lines: 1024
101
102   # Maximum bytes that may be logged by a single job.  Log bytes that are
103   # silenced by throttling are not counted against this total.
104   crunch_limit_log_bytes_per_job: 67108864
105
106   # Path to /etc/dnsmasq.d, or false = do not update dnsmasq data.
107   dnsmasq_conf_dir: false
108
109   # Set to AMI id (ami-123456) to auto-start nodes. See app/models/node.rb
110   compute_node_ami: false
111   compute_node_ec2run_args: -g arvados-compute
112   compute_node_spot_bid: 0.11
113
114   compute_node_domain: false
115   compute_node_nameservers:
116     - 192.168.1.1
117   compute_node_ec2_tag_enable: false
118
119   # The version below is suitable for AWS.
120   # To use it, copy it to your application.yml, uncomment, and change <%# to <%=
121   # compute_node_nameservers: <%#
122   #   require 'net/http'
123   #   ['local', 'public'].collect do |iface|
124   #     Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
125   #   end << '172.16.0.23'
126   # %>
127
128   accept_api_token: {}
129
130   # When new_users_are_active is set to true, the user agreement check is skipped.
131   new_users_are_active: false
132
133   admin_notifier_email_from: arvados@example.com
134   email_subject_prefix: "[ARVADOS] "
135   user_notifier_email_from: arvados@example.com
136   new_user_notification_recipients: [ ]
137   new_inactive_user_notification_recipients: [ ]
138
139   # The e-mail address of the user you would like to become marked as an admin
140   # user on their first login.
141   # In the default configuration, authentication happens through the Arvados SSO
142   # server, which uses openid against Google's servers, so in that case this
143   # should be an address associated with a Google account.
144   auto_admin_user: false
145
146   ## Set Time.zone default to the specified zone and make Active
147   ## Record auto-convert to this zone.  Run "rake -D time" for a list
148   ## of tasks for finding time zone names. Default is UTC.
149   #time_zone: Central Time (US & Canada)
150
151   ## Default encoding used in templates for Ruby 1.9.
152   encoding: utf-8
153
154   # Enable the asset pipeline
155   assets.enabled: true
156
157   # Version of your assets, change this if you want to expire all your assets
158   assets.version: "1.0"
159
160   arvados_theme: default
161
162   # Default: do not advertise a websocket server.
163   websocket_address: false
164
165   # You can run the websocket server separately from the regular HTTP service
166   # by setting "ARVADOS_WEBSOCKETS=ws-only" in the environment before running
167   # the websocket server.  When you do this, you need to set the following
168   # configuration variable so that the primary server can give out the correct
169   # address of the dedicated websocket server:
170   #websocket_address: wss://127.0.0.1:3333/websocket
171
172   # blob_signing_key is a string of alphanumeric characters used to
173   # generate permission signatures for Keep locators. It must be
174   # identical to the permission key given to Keep. IMPORTANT: This is
175   # a site secret. It should be at least 50 characters.
176   blob_signing_key: ~
177
178   # Amount of time (in seconds) for which a blob permission signature
179   # remains valid.  Default: 2 weeks (1209600 seconds)
180   blob_signing_ttl: 1209600
181
182   # Allow clients to create collections by providing a manifest with
183   # unsigned data blob locators. IMPORTANT: This effectively disables
184   # access controls for data stored in Keep: a client who knows a hash
185   # can write a manifest that references the hash, pass it to
186   # collections.create (which will create a permission link), use
187   # collections.get to obtain a signature for that data locator, and
188   # use that signed locator to retrieve the data from Keep. Therefore,
189   # do not turn this on if your users expect to keep data private from
190   # one another!
191   permit_create_collection_with_unsigned_manifest: false
192
193   # secret_token is a string of alphanumeric characters used by Rails
194   # to sign session tokens. IMPORTANT: This is a site secret. It
195   # should be at least 50 characters.
196   secret_token: ~
197
198   # email address to which mail should be sent when the user creates profile for the first time
199   user_profile_notification_address: false
200
201   default_openid_prefix: https://www.google.com/accounts/o8/id
202
203   # Config parameters to automatically setup new users.
204   # The params auto_setup_new_users_with_* are meaningful only when auto_setup_new_users is turned on.
205   # auto_setup_name_blacklist is a list of usernames to be blacklisted for auto setup.
206   auto_setup_new_users: false
207   auto_setup_new_users_with_vm_uuid: false
208   auto_setup_new_users_with_repository: false
209   auto_setup_name_blacklist: [arvados, git, gitolite, gitolite-admin, root, syslog]
210
211   # source_version
212   source_version: "<%= `git log -n 1 --format=%h` %>"
213   local_modified: false
214
215   # Default lifetime for ephemeral collections: 2 weeks.
216   default_trash_lifetime: 1209600