-
Notifications
You must be signed in to change notification settings - Fork 4
/
dynamic_settings.yml
69 lines (67 loc) · 2.34 KB
/
dynamic_settings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# this config file is useful if you don't want to run a consul
# cluster with canvas. Just provide the config data you would
# like for the DynamicSettings class to find, and it will use
# it whenever a call for consul data is issued. Data should be
# shaped like the example below, one key for the related set of data,
# and a hash of key/value pairs (no nesting)
production:
rich-content-service:
app-host:
cdn-host:
canvas:
encryption-secret: "astringthatisactually32byteslong"
signing-secret: "astringthatisactually32byteslong"
development:
# tree
config:
# service
canvas:
# environment
address-book:
app-host: "http://address-book.docker"
secret: "opensesame"
canvas:
encryption-secret: "astringthatisactually32byteslong"
signing-secret: "astringthatisactually32byteslong"
live-events:
aws_endpoint: http://kinesis.canvaslms.docker
kinesis_stream_name: live-events
live-events-subscription-service:
app-host: "http://les.docker"
sad-panda: null
math-man:
base_url: 'http://mathman.docker'
use_for_svg: 'false'
use_for_mml: 'false'
rich-content-service:
app-host: "rce.docker"
# another service
inst-fs:
app-host: "http://inst-fs.docker"
secret: "super-sekret-value"
private:
canvas:
ha_cache.yml: |
cache_store: ha_store
servers:
- redis://localhost/2
# keep stale data for up to 1 week in the cache
race_condition_ttl: 604800
# how long it might take to recompute a cache value
# before the lock times out and another process is
# allowed to write it
lock_timeout: 5
# how long before a cache entry is considered stale
expires_in: 300
# when deleting from the cache, trigger a consul event
# you can use the example script/consume_consul_events
# to delete from local nodes, but may need to tweak
# slightly if your config doesn't match
consul_event: "canvas/dev/invalidate_ha_cache"
# if configured, trigger the event in multiple Consul
# datacenters, rather than just the local one
# if you use this you SHOULD still list the local
# dc; it won't be added for you
consul_datacenters:
- dc1
- dc2