Merge branch 'master' into 2189-log-in-as-user
[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   uuid_prefix: bogus
17
18   # This is suitable for AWS; see common section below for a static example.
19   compute_node_nameservers: <%=
20     require 'net/http'
21     ['local', 'public'].collect do |iface|
22       Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
23     end << '172.16.0.23'
24   %>
25   # You must customize these. See config.defaults.yml for information.
26   compute_node_ami: ~
27   compute_node_ec2_tag_enable: ~
28   compute_node_domain: ~
29   compute_node_spot_bid: ~
30
31 test:
32   uuid_prefix: zzzzz
33
34 common:
35   compute_node_nameservers:
36     - 192.168.0.1
37     - 172.16.0.1