Browse Source

Remove gitlab and linkedin for now.

jackyalcine 6 months ago
parent
commit
1d6aecbd2b
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D
4 changed files with 17 additions and 11 deletions
  1. 7
    6
      config/config.exs
  2. 0
    1
      config/dev.exs
  3. 0
    2
      config/prod.exs
  4. 10
    2
      mix.exs

+ 7
- 6
config/config.exs View File

@@ -6,6 +6,7 @@ config :fortress,
6 6
 config :fortress, Fortress.Web.Endpoint,
7 7
   secret_key_base: "07KAAVCMcOOURO1VRijHWdy48HuFW3zC1+m7ktu9Zq1ubgC8V2zfNXVZ3f9iWxAA",
8 8
   root: Path.dirname(__DIR__),
9
+  url: [host: {:system, :string, "HOST", "fortress.black.af"}, port: {:system, :integer, "PORT", 5000}],
9 10
   render_errors: [view: Fortress.Web.ErrorView, accepts: ~w(html json)],
10 11
   pubsub: [name: Fortress.PubSub, adapter: Phoenix.PubSub.PG2]
11 12
 
@@ -30,14 +31,14 @@ config :ueberauth, Ueberauth.Strategy.Github.OAuth,
30 31
   client_id: {:system, :string, "GITHUB_CLIENT_ID"},
31 32
   client_secret: {:system, :string, "GITHUB_CLIENT_SECRET"}
32 33
 
33
-config :ueberauth, Ueberauth.Strategy.Gitlab.OAuth,
34
-  client_id: {:system, :string, "GITLAB_CLIENT_ID"},
35
-  client_secret: {:system, :string, "GITLAB_CLIENT_SECRET"}
34
+# config :ueberauth, Ueberauth.Strategy.Gitlab.OAuth,
35
+#   client_id: {:system, :string, "GITLAB_CLIENT_ID"},
36
+#   client_secret: {:system, :string, "GITLAB_CLIENT_SECRET"}
36 37
 
37 38
 config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,
38 39
   consumer_key: {:system, :string, "TWITTER_CLIENT_ID"},
39 40
   consumer_secret: {:system, :string, "TWITTER_CLIENT_SECRET"}
40 41
 
41
-config :ueberauth, Ueberauth.Strategy.LinkedIn.OAuth,
42
-  consumer_key: {:system, :string, "LINKEDIN_CLIENT_ID"},
43
-  consumer_secret: {:system, :string, "LINKEDIN_CLIENT_SECRET"}
42
+# config :ueberauth, Ueberauth.Strategy.LinkedIn.OAuth,
43
+#   consumer_key: {:system, :string, "LINKEDIN_CLIENT_ID"},
44
+#   consumer_secret: {:system, :string, "LINKEDIN_CLIENT_SECRET"}

+ 0
- 1
config/dev.exs View File

@@ -1,7 +1,6 @@
1 1
 use Mix.Config
2 2
 
3 3
 config :fortress, Fortress.Web.Endpoint,
4
-  http: [port: {:system, :integer, "PORT", 5000}],
5 4
   debug_errors: true,
6 5
   code_reloader: true,
7 6
   check_origin: false,

+ 0
- 2
config/prod.exs View File

@@ -2,8 +2,6 @@ use Mix.Config
2 2
 
3 3
 config :fortress, Fortress.Web.Endpoint,
4 4
   load_from_system_env: true,
5
-  url: [host: "example.com", port: 80],
6
-  url: [host: {:system, :string, "HOST", "fortress.black.af"}, port: {:system, :integer, "PORT", 5000}],
7 5
   cache_static_manifest: "priv/static/cache_manifest.json"
8 6
 
9 7
 config :logger, level: :info

+ 10
- 2
mix.exs View File

@@ -17,7 +17,15 @@ defmodule Fortress.Mixfile do
17 17
   def application do
18 18
     [
19 19
       mod: {Fortress.Application, []},
20
-      extra_applications: [:logger, :runtime_tools, :confex, :ueberauth, :ueberauth_github, :ueberauth_twitter, :ueberauth_gitlab_strategy]
20
+      extra_applications: [
21
+        :logger,
22
+        :runtime_tools,
23
+        :confex,
24
+        :ueberauth,
25
+        :ueberauth_github,
26
+        :ueberauth_twitter,
27
+        :ueberauth_gitlab_strategy
28
+      ]
21 29
     ]
22 30
   end
23 31
 
@@ -48,7 +56,7 @@ defmodule Fortress.Mixfile do
48 56
       {:ueberauth_github, "~> 0.7"},
49 57
       {:ueberauth_gitlab_strategy, "~> 0.2"},
50 58
       {:ueberauth_twitter, "~> 0.2"},
51
-      {:ueberauth_linkedin, "~> 0.3"},
59
+      {:ueberauth_linkedin, "~> 0.3"}
52 60
     ]
53 61
   end
54 62
 

Loading…
Cancel
Save