]>
cat aescling's git repositories - mastodon.git/blob - config/application.rb
1 require_relative
'boot'
5 # Require the gems listed in Gemfile, including any gems
6 # you've limited to :test, :development, or :production.
7 Bundler
.require(*Rails
.groups
)
9 require_relative
'../app/lib/exceptions'
10 require_relative
'../lib/paperclip/lazy_thumbnail'
11 require_relative
'../lib/paperclip/gif_transcoder'
12 require_relative
'../lib/paperclip/video_transcoder'
13 require_relative
'../lib/paperclip/type_corrector'
14 require_relative
'../lib/mastodon/snowflake'
15 require_relative
'../lib/mastodon/version'
16 require_relative
'../lib/devise/ldap_authenticatable'
20 Bundler
.require(:pam_authentication) if ENV['PAM_ENABLED'] == 'true'
22 require_relative
'../lib/mastodon/redis_config'
25 class Application
< Rails
::Application
26 # Initialize configuration defaults for originally generated Rails version.
27 config
.load_defaults
5.2
29 # Settings in config/environments/* take precedence over those specified here.
30 # Application configuration should go into files in config/initializers
31 # -- all .rb files in that directory are automatically loaded.
33 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
34 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
35 # config.time_zone = 'Central Time (US & Canada)'
37 # All translations from config/locales/*.rb,yml are auto loaded.
38 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
39 config
.i18n
.available_locales
= [
99 config
.i18n
.default_locale
= ENV['DEFAULT_LOCALE']&.to_sym
101 unless config
.i18n
.available_locales
.include?(config
.i18n
.default_locale
)
102 config
.i18n
.default_locale
= :en
105 # config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
106 # config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
108 config
.active_job
.queue_adapter
= :sidekiq
110 config
.middleware
.use Rack
::Attack
111 config
.middleware
.use Rack
::Deflater
114 Doorkeeper
::AuthorizationsController.layout
'modal'
115 Doorkeeper
::AuthorizedApplicationsController.layout
'admin'
116 Doorkeeper
::Application.send
:include, ApplicationExtension
117 Devise
::FailureApp.send
:include, AbstractController
::Callbacks
118 Devise
::FailureApp.send
:include, HttpAcceptLanguage
::EasyAccess
119 Devise
::FailureApp.send
:include, Localized
This page took 0.099838 seconds and 4 git commands to generate.