aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 %>"