Skip to content

Commit 9e0724d

Browse files
committed
make MySQL SSL mode configurable via env var
1 parent ce4be34 commit 9e0724d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/database.mysql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ default: &default
55
username: <%= ENV.fetch("MYSQL_USER", "root") %>
66
password: <%= ENV["MYSQL_PASSWORD"] %>
77
pool: 50
8+
ssl_mode: <%= ENV["MYSQL_SSL_MODE"] %>
89
timeout: 5000
910

1011
development:
@@ -40,4 +41,4 @@ production:
4041
cache:
4142
<<: *default
4243
database: fizzy_production_cache
43-
migrations_paths: db/cache_migrate
44+
migrations_paths: db/cache_migrate

0 commit comments

Comments
 (0)