Browse Source

Use port 5432 for DB conn

master
buttercat1791 2 months ago
parent
commit
12201c4761
  1. 9
      config/config.exs
  2. 2
      config/dev.exs
  3. 6
      config/prod.exs
  4. 2
      config/test.exs

9
config/config.exs

@ -11,6 +11,15 @@ config :gc_index_relay, @@ -11,6 +11,15 @@ config :gc_index_relay,
ecto_repos: [GcIndexRelay.Repo],
generators: [timestamp_type: :utc_datetime]
config :gc_index_relay, GcIndexRelay.Repo,
username: System.get_env("POSTGRES_ADMIN_USER"),
password: System.get_env("POSTGRES_ADMIN_PASSWORD"),
database: System.get_env("POSTGRES_DB"),
hostname: System.get_env("POSTGRES_HOST"),
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
# Configure the endpoint
config :gc_index_relay, GcIndexRelayWeb.Endpoint,
url: [host: "localhost"],

2
config/dev.exs

@ -2,7 +2,7 @@ import Config @@ -2,7 +2,7 @@ import Config
# Configure your database
config :gc_index_relay, GcIndexRelay.Repo,
port: 5455,
port: 5432,
username: "postgres",
password: "postgres",
hostname: "localhost",

6
config/prod.exs

@ -1,5 +1,11 @@ @@ -1,5 +1,11 @@
import Config
config :gc_index_relay, GcIndexRelay.Repo,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
ssl: true,
ssl_opts: [verify: :verify_none]
# Force using SSL in production. This also sets the "strict-security-transport" header,
# known as HSTS. If you have a health check endpoint, you may want to exclude it below.
# Note `:force_ssl` is required to be set at compile-time.

2
config/test.exs

@ -8,7 +8,7 @@ config :gc_index_relay, :start_repo, true @@ -8,7 +8,7 @@ config :gc_index_relay, :start_repo, true
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :gc_index_relay, GcIndexRelay.Repo,
port: 5455,
port: 5432,
username: "postgres",
password: "postgres",
hostname: "localhost",

Loading…
Cancel
Save