-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.exs
36 lines (30 loc) · 1.28 KB
/
config.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :release_admin,
ecto_repos: [ReleaseAdmin.Repo],
runtime_config: ReleaseAdmin.LiveConfig
# Configures the endpoint
config :release_admin, ReleaseAdminWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "s2uhDrAvgw8B8Ei9YtQ4ftuxodQBPDSEIenJJR8VakidMlAIybhx5J+1o7lvpXla",
render_errors: [view: ReleaseAdminWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: ReleaseAdmin.PubSub, adapter: Phoenix.PubSub.PG2]
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:user_id]
config :ueberauth, Ueberauth,
providers: [
github: {Ueberauth.Strategy.Github, [default_scope: "read:user, user:email, read:org, repo:status"]}
]
config :ueberauth, Ueberauth.Strategy.Github.OAuth,
client_id: System.get_env("GITHUB_CLIENT_ID"),
client_secret: System.get_env("GITHUB_CLIENT_SECRET")
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"