Skip to content

Commit

Permalink
Remove config.sercret
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslansavenok committed Nov 26, 2018
1 parent 08e48f8 commit c48a25f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ yarn-error.log
# Alternatively, you may comment the line below and commit the
# secrets files as long as you replace their contents by environment
# variables.
/config/*.secret.exs
.deliver/releases/

.DS_Store
13 changes: 5 additions & 8 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ config :lib_ten,
ecto_repos: [LibTen.Repo],
smtp_sender_email: "[email protected]",
title: "10Books",
allowed_google_auth_domains: "Set in config.secret.exs"
allowed_google_auth_domains: "gmail.com"


# Configures the endpoint
Expand Down Expand Up @@ -38,20 +38,17 @@ config :ueberauth, Ueberauth,
google: {Ueberauth.Strategy.Google, [default_scope: "email profile"]}
]

# NOTE:
# This credentials will only work for localhost:4000
config :ueberauth, Ueberauth.Strategy.Google.OAuth,
client_id: "Set in config.secret.exs",
client_secret: "Set in config.secret.exs"
client_id: "1042788706751-9blqj83j8r127qc0hlecf23is1erkhpc.apps.googleusercontent.com",
client_secret: "UZUeRQHF6CljecqlQGOHECVO"

# Prevent distributed erlang to be accessible outside of local network
# https://elixirforum.com/t/distillery-node-defaults-should-i-be-concerned-about-security/14836/2
config :kernel,
inet_dist_use_interface: {127, 0, 0, 1}

# Import config for local development
if File.exists?("config/config.secret.exs") do
import_config "config.secret.exs"
end

# 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"
10 changes: 0 additions & 10 deletions config/config.secret.example.exs

This file was deleted.

8 changes: 0 additions & 8 deletions config/dev.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
use Mix.Config

if !File.exists?("config/config.secret.exs") do
raise IO.ANSI.red_background() <> IO.ANSI.white() <> "\n" <> """
Dev env will not work correctly without config.secret.exs
Check config/config.secret.example.exs
""" <> IO.ANSI.reset
end

# For development, we disable any cache and enable
# debugging and code reloading.
#
Expand Down

0 comments on commit c48a25f

Please sign in to comment.