Merge branch 'master' into 2257-inequality-conditions
[arvados.git] / services / api / config / application.yml.example
1 # Copy this file to application.yml and edit to suit.
2 #
3 # Consult application.default.yml for the full list of configuration
4 # settings.
5 #
6 # The order of precedence is:
7 # 1. config/environments/{RAILS_ENV}.rb (deprecated)
8 # 2. Section in application.yml corresponding to RAILS_ENV (e.g., development)
9 # 3. Section in application.yml called "common"
10 # 4. Section in application.default.yml corresponding to RAILS_ENV
11 # 5. Section in application.default.yml called "common"
12
13 development:
14
15 production:
16   # At minimum, you need a nice long randomly generated secret_token here.
17   secret_token: ~
18
19   uuid_prefix: bogus
20
21   # This is suitable for AWS; see common section below for a static example.
22   #
23   #compute_node_nameservers: <%#
24     require 'net/http'
25     ['local', 'public'].collect do |iface|
26       Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
27     end << '172.16.0.23'
28   %>
29
30 test:
31   uuid_prefix: zzzzz
32   secret_token: <%= rand(2**512).to_s(36) %>
33
34 common:
35
36   # Git repositories must be readable by api server, or you won't be
37   # able to submit crunch jobs. To pass the test suites, put a clone
38   # of the arvados tree in {git_repositories_dir}/arvados.git or
39   # {git_repositories_dir}/arvados/.git
40   #
41   #git_repositories_dir: /var/cache/git