 #       https: [port: 443,
 #               keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
 #               certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
-#
+
+# Configure your database
+config :chat_server, ChatServer.Repo,
+  adapter: Ecto.Adapters.Postgres,
+  url: System.get_env("DATABASE_URL"),
+  pool_size: 20
+
 # Where those two env variables return an absolute path to
 # the key and cert in disk or a relative path inside priv,
 # for example "priv/ssl/server.key".


# Finally import the config/prod.secret.exs
# which should be versioned separately.
import_config "prod.secret.exs"

# which you typically run after static files are built.
config :chat_server, ChatServer.Endpoint,
  http: [port: {:system, "PORT"}],
  url: [scheme: "https", host: "fierce-lowlands-16567.herokuapp.com", port: 443],
  force_ssl: [rewrite_on: [:x_forwarded_proto]],
  cache_static_manifest: "priv/static/manifest.json",
  secret_key_base: System.get_env("SECRET_KEY_BASE")

# Do not print debug messages in production
config :logger, level: :info
