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