diff --git a/config/prod.exs b/config/prod.exs index 0a6854c..9d8479f 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -5,19 +5,19 @@ config :chess, ChessWeb.Endpoint, check_origin: ["https://chess.danbarber.me", "https://64squares.club"], http: [port: {:system, "PORT"}], root: "./assets", - secret_key_base: "${SECRET_KEY_BASE}", + secret_key_base: System.get_env("SECRET_KEY_BASE"), server: true, - url: [scheme: "https", host: "${HOST}", port: "${URL_PORT}"], + url: [scheme: "https", host: System.get_env("HOST"), port: System.get_env("URL_PORT")], version: Application.spec(:chess, :vsn) config :chess, Chess.Mailer, adapter: Bamboo.MailgunAdapter, - api_key: "${MAILGUN_API_KEY}", - domain: "${MAILGUN_DOMAIN}" + api_key: System.get_env("MAILGUN_API_KEY"), + domain: System.get_env("MAILGUN_DOMAIN") config :chess, Chess.Repo, adapter: Ecto.Adapters.Postgres, - url: "${DATABASE_URL}", + url: System.get_env("DATABASE_URL"), database: "", ssl: true, pool_size: 1 diff --git a/rel/config.exs b/rel/config.exs index b8c84b8..56d9c68 100644 --- a/rel/config.exs +++ b/rel/config.exs @@ -39,6 +39,12 @@ environment :prod do set include_src: false set cookie: :"lhX:Fbp>xJ&V;50V~CY