Merge branch '3126-remote-git-url' closes #3126
[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   # If not false, this is the hostname that will be used to generate fetch_url
63   # and push_url for git repositories.  By default, this will be
64   # git.(uuid_prefix).arvadosapi.com
65   git_host: false
66
67   # If this is not false, HTML requests at the API server's root URL
68   # are redirected to this location, and it is provided in the text of
69   # user activation notification email messages to remind them where
70   # to log in.
71   workbench_address: false
72
73   # Git repositories must be readable by api server, or you won't be
74   # able to submit crunch jobs. To pass the test suites, put a clone
75   # of the arvados tree in {git_repositories_dir}/arvados.git or
76   # {git_repositories_dir}/arvados/.git
77   git_repositories_dir: /var/lib/arvados/git
78
79   # If an arv-git-httpd service is running, advertise it in the
80   # discovery document by adding its public URI base here. Example:
81   # https://git.xxxxx.arvadosapi.com
82   git_http_base: false
83
84   # This is a (bare) repository that stores commits used in jobs.  When a job
85   # runs, the source commits are first fetched into this repository, then this
86   # repository is used to deploy to compute nodes.  This should NOT be a
87   # subdirectory of {git_repositiories_dir}.
88   git_internal_dir: /var/lib/arvados/internal.git
89
90   # :none or :slurm_immediate
91   crunch_job_wrapper: :none
92
93   # username, or false = do not set uid when running jobs.
94   crunch_job_user: crunch
95
96   # The web service must be able to create/write this file, and
97   # crunch-job must be able to stat() it.
98   crunch_refresh_trigger: /tmp/crunch_refresh_trigger
99
100   # These two settings control how frequently log events are flushed to the
101   # database.  Log lines are buffered until either crunch_log_bytes_per_event
102   # has been reached or crunch_log_seconds_between_events has elapsed since
103   # the last flush.
104   crunch_log_bytes_per_event: 4096
105   crunch_log_seconds_between_events: 1
106
107   # The sample period for throttling logs, in seconds.
108   crunch_log_throttle_period: 60
109
110   # Maximum number of bytes that job can log over crunch_log_throttle_period
111   # before being silenced until the end of the period.
112   crunch_log_throttle_bytes: 65536
113
114   # Maximum number of lines that job can log over crunch_log_throttle_period
115   # before being silenced until the end of the period.
116   crunch_log_throttle_lines: 1024
117
118   # Maximum bytes that may be logged by a single job.  Log bytes that are
119   # silenced by throttling are not counted against this total.
120   crunch_limit_log_bytes_per_job: 67108864
121
122   # Path to dns server configuration directory (e.g. /etc/unbound.d/conf.d),
123   # or false = do not update dns server data.
124   dns_server_conf_dir: false
125
126   # Template for the dns server host snippets. See unbound.template in this directory for
127   # an example. Set to false to disable.
128   dns_server_conf_template: false
129
130   # Dns server reload command, or false = do not reload dns server after data change
131   dns_server_reload_command: false
132
133   # Example for unbound
134   #dns_server_conf_dir: /etc/unbound/conf.d
135   #dns_server_conf_template: /path/to/your/api/server/config/unbound.template
136   #dns_server_reload_command: /etc/init.d/unbound reload
137
138   compute_node_domain: false
139   compute_node_nameservers:
140     - 192.168.1.1
141
142   # The version below is suitable for AWS.
143   # To use it, copy it to your application.yml, uncomment, and change <%# to <%=
144   # compute_node_nameservers: <%#
145   #   require 'net/http'
146   #   ['local', 'public'].collect do |iface|
147   #     Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
148   #   end << '172.16.0.23'
149   # %>
150
151   accept_api_token: {}
152
153   # When new_users_are_active is set to true, the user agreement check is skipped.
154   new_users_are_active: false
155
156   admin_notifier_email_from: arvados@example.com
157   email_subject_prefix: "[ARVADOS] "
158   user_notifier_email_from: arvados@example.com
159   new_user_notification_recipients: [ ]
160   new_inactive_user_notification_recipients: [ ]
161
162   # The e-mail address of the user you would like to become marked as an admin
163   # user on their first login.
164   # In the default configuration, authentication happens through the Arvados SSO
165   # server, which uses openid against Google's servers, so in that case this
166   # should be an address associated with a Google account.
167   auto_admin_user: false
168
169   # If auto_admin_first_user is set to true, the first user to log in when no
170   # other admin users exist will automatically become an admin user.
171   auto_admin_first_user: false
172
173   ## Set Time.zone default to the specified zone and make Active
174   ## Record auto-convert to this zone.  Run "rake -D time" for a list
175   ## of tasks for finding time zone names. Default is UTC.
176   #time_zone: Central Time (US & Canada)
177
178   ## Default encoding used in templates for Ruby 1.9.
179   encoding: utf-8
180
181   # Enable the asset pipeline
182   assets.enabled: true
183
184   # Version of your assets, change this if you want to expire all your assets
185   assets.version: "1.0"
186
187   arvados_theme: default
188
189   # The ARVADOS_WEBSOCKETS environment variable determines whether to
190   # serve http, websockets, or both.
191   #
192   # If ARVADOS_WEBSOCKETS="true", http and websockets are both served
193   # from the same process.
194   #
195   # If ARVADOS_WEBSOCKETS="ws-only", only websockets is served.
196   #
197   # If ARVADOS_WEBSOCKETS="false" or not set at all, only http is
198   # served. In this case, you should have a separate process serving
199   # websockets, and the address of that service should be given here
200   # as websocket_address.
201   #
202   # If websocket_address is false (which is the default), the
203   # discovery document will tell clients to use the current server as
204   # the websocket service, or (if the current server does not have
205   # websockets enabled) not to use websockets at all.
206   #
207   # Example: Clients will connect to the specified endpoint.
208   #websocket_address: wss://127.0.0.1:3333/websocket
209   # Default: Clients will connect to this server if it's running
210   # websockets, otherwise none at all.
211   websocket_address: false
212
213   # blob_signing_key is a string of alphanumeric characters used to
214   # generate permission signatures for Keep locators. It must be
215   # identical to the permission key given to Keep. IMPORTANT: This is
216   # a site secret. It should be at least 50 characters.
217   blob_signing_key: ~
218
219   # Amount of time (in seconds) for which a blob permission signature
220   # remains valid.  Default: 2 weeks (1209600 seconds)
221   blob_signing_ttl: 1209600
222
223   # Allow clients to create collections by providing a manifest with
224   # unsigned data blob locators. IMPORTANT: This effectively disables
225   # access controls for data stored in Keep: a client who knows a hash
226   # can write a manifest that references the hash, pass it to
227   # collections.create (which will create a permission link), use
228   # collections.get to obtain a signature for that data locator, and
229   # use that signed locator to retrieve the data from Keep. Therefore,
230   # do not turn this on if your users expect to keep data private from
231   # one another!
232   permit_create_collection_with_unsigned_manifest: false
233
234   # secret_token is a string of alphanumeric characters used by Rails
235   # to sign session tokens. IMPORTANT: This is a site secret. It
236   # should be at least 50 characters.
237   secret_token: ~
238
239   # email address to which mail should be sent when the user creates profile for the first time
240   user_profile_notification_address: false
241
242   default_openid_prefix: https://www.google.com/accounts/o8/id
243
244   # Config parameters to automatically setup new users.
245   # The params auto_setup_new_users_with_* are meaningful only when auto_setup_new_users is turned on.
246   # auto_setup_name_blacklist is a list of usernames to be blacklisted for auto setup.
247   auto_setup_new_users: false
248   auto_setup_new_users_with_vm_uuid: false
249   auto_setup_new_users_with_repository: false
250   auto_setup_name_blacklist: [arvados, git, gitolite, gitolite-admin, root, syslog]
251
252   # source_version
253   source_version: "<%= `git log -n 1 --format=%h`.strip %>"
254   local_modified: false
255
256   # Default lifetime for ephemeral collections: 2 weeks.
257   default_trash_lifetime: 1209600
258
259   # Permit insecure (OpenSSL::SSL::VERIFY_NONE) connections to the Single Sign
260   # On (sso) server.  Should only be enabled during development when the SSO
261   # server is using a self-signed cert.
262   sso_insecure: false
263
264   # Default replication level for collections. This is used when a
265   # collection's replication_desired attribute is nil.
266   default_collection_replication: 2
267
268   # Maximum size (in bytes) allowed for a single API request that will be
269   # published in the discovery document for use by clients.
270   # Note you must separately configure the upstream web server or proxy to
271   # actually enforce the desired maximum request size on the server side.
272   max_request_size: 134217728