aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-01 10:36:28 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-01 10:52:11 +0200
commita97de7164b6a46a5e24aee6defbc09ca45c989a4 (patch)
tree1e912876e6bb8a7ac41ff988088e49f3d4cf444f /modules
parente741407bd1dd0557bde0d74c061e02d198f889ed (diff)
downloadPuppet-a97de7164b6a46a5e24aee6defbc09ca45c989a4.tar.gz
Puppet-a97de7164b6a46a5e24aee6defbc09ca45c989a4.tar.zst
Puppet-a97de7164b6a46a5e24aee6defbc09ca45c989a4.zip
Add redis host for cryptoportfolio api
Diffstat (limited to 'modules')
-rw-r--r--modules/role/templates/cryptoportfolio/api_conf.toml.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/role/templates/cryptoportfolio/api_conf.toml.erb b/modules/role/templates/cryptoportfolio/api_conf.toml.erb
index 7a4b66d..8d0e037 100644
--- a/modules/role/templates/cryptoportfolio/api_conf.toml.erb
+++ b/modules/role/templates/cryptoportfolio/api_conf.toml.erb
@@ -8,6 +8,17 @@ password="<%= @pg_password %>"
8database="<%= @pg_db %>" 8database="<%= @pg_db %>"
9address="<%= @pg_host %>" 9address="<%= @pg_host %>"
10 10
11<%- if !@redis_host.nil? && @redis_host != "" -%>
12[redis]
13<%- if @redis_host[0] == "/" -%>
14type="unix"
15<%- else -%>
16type="tcp"
17<%- end -%>
18address="<%= @redis_host %>"
19database=0
20<%- end -%>
21
11[api] 22[api]
12domain="<%= @web_host %>" 23domain="<%= @web_host %>"
13jwt_secret="<%= @cf_front_app_api_secret %>" 24jwt_secret="<%= @cf_front_app_api_secret %>"