Now supports both websocket integrated (ARVADOS_WEBSOCKETS defined) and
[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   # compute_node_domain: example.org
22   # compute_node_nameservers:
23   #   - 127.0.0.1
24   #   - 192.168.1.1
25   #
26   # The version below is suitable for AWS.
27   # Uncomment and change <%# to <%= to use it.
28   # compute_node_nameservers: <%#
29     require 'net/http'
30     ['local', 'public'].collect do |iface|
31       Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
32     end << '172.16.0.23'
33   %>
34
35 test:
36   uuid_prefix: zzzzz
37   secret_token: <%= rand(2**512).to_s(36) %>
38
39 common:
40   #git_repositories_dir: /var/cache/git
41   #git_internal_dir: /var/cache/arvados/internal.git
42
43   # You can run the websocket server separately from the regular HTTP service
44   # by setting "ARVADOS_WEBSOCKETS=ws-only" in the environment before running
45   # the websocket server.  When you do this, you need to set the following
46   # configuration variable so that the primary server can give out the correct
47   # address of the dedicated websocket server:
48   #websocket_address: wss://websocket.local/websockets