-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
config.ini.ctmpl
48 lines (42 loc) · 1.55 KB
/
config.ini.ctmpl
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
{{- define "KEY" -}}
{{ key (printf "docker-server-configs/SIR/%s.config.json/%s" (or (env "DEPLOY_ENV") "beta") .) }}
{{- end -}}
[sir]
import_threads = {{template "KEY" "import_threads"}}
query_batch_size = {{template "KEY" "query_batch_size"}}
wscompat = {{template "KEY" "wscompat"}}
process_delay = {{template "KEY" "process_delay"}}
live_index_batch_size = {{template "KEY" "live_index_batch_size"}}
index_limit = {{template "KEY" "index_limit"}}
[database]
{{- with $pg_primary_service_name := or (env "PG_SERVICE_PRIMARY") "pgbouncer-master"}}
{{- with $pg_secondary_service_name := or (env "PG_SERVICE_SECONDARY") "pgbouncer-slave"}}
{{- with or (service $pg_primary_service_name) (service $pg_secondary_service_name)}}
{{- with index . 0}}
dbname = {{template "KEY" "db/musicbrainz_db"}}
host = {{.Address}}
password = {{template "KEY" "db/password"}}
port = {{.Port}}
user = {{template "KEY" "db/user"}}
{{- end}}
{{- end}}
{{- end}}
{{- end}}
[solr]
uri = {{template "KEY" "solr/uri"}}
batch_size = {{template "KEY" "solr/batch_size"}}
{{- with $rabbitmq_service_name := or (env "RABBITMQ_SERVICE") "rabbitmq"}}
{{- if service $rabbitmq_service_name}}
[rabbitmq]
{{- with index (service $rabbitmq_service_name) 0}}
host = {{.Address}}:{{.Port}}
user = {{template "KEY" "rabbitmq/user"}}
password = {{template "KEY" "rabbitmq/password"}}
vhost = {{template "KEY" "rabbitmq/vhost"}}
prefetch_count = {{template "KEY" "rabbitmq/prefetch_count"}}
timeout = {{template "KEY" "rabbitmq/timeout"}}
{{- end}}
{{- end}}
{{- end}}
[sentry]
dsn = {{template "KEY" "sentry_dsn"}}