Skip to content

Commit

Permalink
Introduce SQL_TLS_ENABLED env var to allow enabling TLS for SQL datas…
Browse files Browse the repository at this point in the history
…tores
  • Loading branch information
aromanovich committed Apr 18, 2021
1 parent cb02a52 commit bb6ec62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ persistence:
maxConns: {{ default .Env.SQL_MAX_CONNS "20" }}
maxIdleConns: {{ default .Env.SQL_MAX_IDLE_CONNS "20" }}
maxConnLifetime: {{ default .Env.SQL_MAX_CONN_TIME "1h" }}
tls:
enabled: {{ default .Env.SQL_TLS_ENABLED "false" }}
visibility:
sql:
pluginName: "mysql"
Expand All @@ -79,6 +81,8 @@ persistence:
maxConns: {{ default .Env.SQL_VIS_MAX_CONNS "10" }}
maxIdleConns: {{ default .Env.SQL_VIS_MAX_IDLE_CONNS "10" }}
maxConnLifetime: {{ default .Env.SQL_VIS_MAX_CONN_TIME "1h" }}
tls:
enabled: {{ default .Env.SQL_TLS_ENABLED "false" }}
{{- else if eq $db "postgresql" }}
default:
sql:
Expand All @@ -91,6 +95,8 @@ persistence:
maxConns: {{ default .Env.SQL_MAX_CONNS "20" }}
maxIdleConns: {{ default .Env.SQL_MAX_IDLE_CONNS "20" }}
maxConnLifetime: {{ default .Env.SQL_MAX_CONN_TIME "1h" }}
tls:
enabled: {{ default .Env.SQL_TLS_ENABLED "false" }}
visibility:
sql:
pluginName: "postgres"
Expand All @@ -102,6 +108,8 @@ persistence:
maxConns: {{ default .Env.SQL_VIS_MAX_CONNS "10" }}
maxIdleConns: {{ default .Env.SQL_VIS_MAX_IDLE_CONNS "10" }}
maxConnLifetime: {{ default .Env.SQL_VIS_MAX_CONN_TIME "1h" }}
tls:
enabled: {{ default .Env.SQL_TLS_ENABLED "false" }}
{{- end }}
{{- if eq $es "true" }}
es-visibility:
Expand Down

0 comments on commit bb6ec62

Please sign in to comment.