diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-01 10:36:28 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-01 10:52:11 +0200 |
commit | a97de7164b6a46a5e24aee6defbc09ca45c989a4 (patch) | |
tree | 1e912876e6bb8a7ac41ff988088e49f3d4cf444f /modules/role/templates/cryptoportfolio | |
parent | e741407bd1dd0557bde0d74c061e02d198f889ed (diff) | |
download | Puppet-a97de7164b6a46a5e24aee6defbc09ca45c989a4.tar.gz Puppet-a97de7164b6a46a5e24aee6defbc09ca45c989a4.tar.zst Puppet-a97de7164b6a46a5e24aee6defbc09ca45c989a4.zip |
Add redis host for cryptoportfolio api
Diffstat (limited to 'modules/role/templates/cryptoportfolio')
-rw-r--r-- | modules/role/templates/cryptoportfolio/api_conf.toml.erb | 11 |
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 %>" | |||
8 | database="<%= @pg_db %>" | 8 | database="<%= @pg_db %>" |
9 | address="<%= @pg_host %>" | 9 | address="<%= @pg_host %>" |
10 | 10 | ||
11 | <%- if !@redis_host.nil? && @redis_host != "" -%> | ||
12 | [redis] | ||
13 | <%- if @redis_host[0] == "/" -%> | ||
14 | type="unix" | ||
15 | <%- else -%> | ||
16 | type="tcp" | ||
17 | <%- end -%> | ||
18 | address="<%= @redis_host %>" | ||
19 | database=0 | ||
20 | <%- end -%> | ||
21 | |||
11 | [api] | 22 | [api] |
12 | domain="<%= @web_host %>" | 23 | domain="<%= @web_host %>" |
13 | jwt_secret="<%= @cf_front_app_api_secret %>" | 24 | jwt_secret="<%= @cf_front_app_api_secret %>" |