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"],
|
check_origin: ["https://chess.danbarber.me", "https://64squares.club"],
|
||||||
http: [port: {:system, "PORT"}],
|
http: [port: {:system, "PORT"}],
|
||||||
root: "./assets",
|
root: "./assets",
|
||||||
secret_key_base: "${SECRET_KEY_BASE}",
|
secret_key_base: System.get_env("SECRET_KEY_BASE"),
|
||||||
server: true,
|
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)
|
version: Application.spec(:chess, :vsn)
|
||||||
|
|
||||||
config :chess, Chess.Mailer,
|
config :chess, Chess.Mailer,
|
||||||
adapter: Bamboo.MailgunAdapter,
|
adapter: Bamboo.MailgunAdapter,
|
||||||
api_key: "${MAILGUN_API_KEY}",
|
api_key: System.get_env("MAILGUN_API_KEY"),
|
||||||
domain: "${MAILGUN_DOMAIN}"
|
domain: System.get_env("MAILGUN_DOMAIN")
|
||||||
|
|
||||||
config :chess, Chess.Repo,
|
config :chess, Chess.Repo,
|
||||||
adapter: Ecto.Adapters.Postgres,
|
adapter: Ecto.Adapters.Postgres,
|
||||||
url: "${DATABASE_URL}",
|
url: System.get_env("DATABASE_URL"),
|
||||||
database: "",
|
database: "",
|
||||||
ssl: true,
|
ssl: true,
|
||||||
pool_size: 1
|
pool_size: 1
|
||||||
|
|||||||
@ -39,6 +39,12 @@ environment :prod do
|
|||||||
set include_src: false
|
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 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 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
|
end
|
||||||
|
|
||||||
# You may define one or more releases in this file.
|
# 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