37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
require_relative "boot"
|
|
|
|
require "rails/all"
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
# you've limited to :test, :development, or :production.
|
|
Bundler.require(*Rails.groups)
|
|
|
|
Dotenv::Railtie.load
|
|
|
|
module Borders
|
|
class Application < Rails::Application
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
config.load_defaults 7.0
|
|
|
|
config.hosts << "dev.j4.pm"
|
|
|
|
# Configuration for the application, engines, and railties goes here.
|
|
#
|
|
# These settings can be overridden in specific environments using the files
|
|
# in config/environments, which are processed later.
|
|
#
|
|
# config.time_zone = "Central Time (US & Canada)"
|
|
# config.eager_load_paths << Rails.root.join("extras")
|
|
|
|
config.session_store :cookie_store, key: '_interslice_session'
|
|
config.middleware.use ActionDispatch::Cookies
|
|
config.middleware.use ActionDispatch::Session::CookieStore, config.session_options
|
|
|
|
config.middleware.use OmniAuth::Builder do
|
|
provider :discord, ENV['DISCORD_CLIENT_ID'], ENV['DISCORD_CLIENT_SECRET'], scope: 'identify'
|
|
end
|
|
|
|
OmniAuth.config.logger = Rails.logger
|
|
end
|
|
end
|