60193ced8786c38f139afbc4dfd57ff5662a6ec9
[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   compute_node_nameservers: <%=
23     require 'net/http'
24     ['local', 'public'].collect do |iface|
25       Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
26     end << '172.16.0.23'
27   %>
28
29 test:
30   uuid_prefix: zzzzz
31   secret_token: <%= rand(2**512).to_s(36) %>
32
33 common: