1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Add check origin config for production

This commit is contained in:
Daniel Barber 2018-02-26 23:23:42 -05:00
parent 59f16d7413
commit 1a13a178a1
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -1,13 +1,14 @@
use Mix.Config
config :chess, ChessWeb.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "localhost", port: {:system, "PORT"}],
cache_static_manifest: "priv/static/cache_manifest.json",
server: true,
check_origin: ["https://chess.danbarber.me"],
http: [port: {:system, "PORT"}],
root: "./assets",
version: Application.spec(:myapp, :vsn),
secret_key_base: "${SECRET_KEY_BASE}"
secret_key_base: "${SECRET_KEY_BASE}",
server: true,
url: [host: "localhost", port: {:system, "PORT"}],
version: Application.spec(:myapp, :vsn)
config :chess, Chess.Repo,
adapter: Ecto.Adapters.Postgres,