diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 15 | ||||
-rw-r--r-- | config/dev.exs | 1 |
2 files changed, 15 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index f889e3259..28867ed4c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -370,6 +370,21 @@ config :auto_linker, rel: false ] +config :pleroma, :auth, oauth_consumer_enabled: false + +config :ueberauth, + Ueberauth, + base_path: "/oauth", + providers: [ + twitter: + {Ueberauth.Strategy.Twitter, + [callback_params: ~w[client_id redirect_uri scope scopes]]} + ] + +config :ueberauth, Ueberauth.Strategy.Twitter.OAuth, + consumer_key: System.get_env("TWITTER_CONSUMER_KEY"), + consumer_secret: System.get_env("TWITTER_CONSUMER_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" diff --git a/config/dev.exs b/config/dev.exs index f77bb9976..a7eb4b644 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -12,7 +12,6 @@ config :pleroma, Pleroma.Web.Endpoint, protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192] ], protocol: "http", - secure_cookie_flag: false, debug_errors: true, code_reloader: true, check_origin: false, |