mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Blegh
This commit is contained in:
parent
334e9b6ef8
commit
6fceaadda5
@ -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
|
||||
|
||||
@ -39,6 +39,12 @@ environment :prod do
|
||||
set include_src: false
|
||||
set cookie: :"lhX:Fbp>xJ&V;50V~CY<vA7Wtf!T)N_A:O!9s$.G@jOAL=hxYF*qL;ksj|m^Y!e^"
|
||||
set vm_args: "rel/vm.args"
|
||||
set config_providers: [
|
||||
{Distillery.Releases.Config.Providers.Elixir, ["${RELEASE_ROOT_DIR}/etc/config.exs"]}
|
||||
]
|
||||
set overlays: [
|
||||
{:copy, "rel/config/config.exs", "etc/config.exs"}
|
||||
]
|
||||
end
|
||||
|
||||
# You may define one or more releases in this file.
|
||||
|
||||
23
rel/config/config.exs
Normal file
23
rel/config/config.exs
Normal file
@ -0,0 +1,23 @@
|
||||
use Mix.Config
|
||||
|
||||
config :chess, ChessWeb.Endpoint,
|
||||
cache_static_manifest: "priv/static/cache_manifest.json",
|
||||
check_origin: ["https://chess.danbarber.me", "https://64squares.club"],
|
||||
http: [port: {:system, "PORT"}],
|
||||
root: "./assets",
|
||||
secret_key_base: "${SECRET_KEY_BASE}",
|
||||
server: true,
|
||||
url: [scheme: "https", host: "${HOST}", port: "${URL_PORT}"],
|
||||
version: Application.spec(:chess, :vsn)
|
||||
|
||||
config :chess, Chess.Mailer,
|
||||
adapter: Bamboo.MailgunAdapter,
|
||||
api_key: "${MAILGUN_API_KEY}",
|
||||
domain: "${MAILGUN_DOMAIN}"
|
||||
|
||||
config :chess, Chess.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
url: "${DATABASE_URL}",
|
||||
database: "",
|
||||
ssl: true,
|
||||
pool_size: 1
|
||||
Loading…
Reference in New Issue
Block a user