ssl ecto
This commit is contained in:
parent
984b1b38c7
commit
33c5b977b0
2 changed files with 12 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ if config_env() == :prod do
|
|||
secret: System.get_env("AWS_SECRET_ACCESS_KEY")
|
||||
|
||||
config :towerops, Towerops.Repo,
|
||||
# ssl: true,
|
||||
ssl: true,
|
||||
url: database_url,
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
|
||||
# For machines with several cores, consider starting multiple pools of `pool_size`
|
||||
|
|
|
|||
11
priv/repo/migrations/20260125214531_enable_sslinfo.exs
Normal file
11
priv/repo/migrations/20260125214531_enable_sslinfo.exs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
defmodule Towerops.Repo.Migrations.EnableSslinfo do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute "CREATE EXTENSION IF NOT EXISTS sslinfo"
|
||||
end
|
||||
|
||||
def down do
|
||||
execute "DROP EXTENSION IF EXISTS sslinfo"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue