diff options
-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 %>" |