]>
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/gif_transcoder'
11 require_relative
'../lib/paperclip/video_transcoder'
12 require_relative
'../lib/mastodon/version'
16 require_relative
'../lib/mastodon/redis_config'
19 class Application
< Rails
::Application
20 # Settings in config/environments/* take precedence over those specified here.
21 # Application configuration should go into files in config/initializers
22 # -- all .rb files in that directory are automatically loaded.
24 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26 # config.time_zone = 'Central Time (US & Canada)'
28 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30 config
.i18n
.available_locales
= [
64 config
.i18n
.default_locale
= :en
66 # config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
67 # config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
69 config
.active_job
.queue_adapter
= :sidekiq
71 config
.middleware
.insert_before
0, Rack
::Cors do
74 resource
'/@:username', headers
: :any, methods
: [:get], credentials
: false
75 resource
'/api/*', headers
: :any, methods
: [:post, :put, :delete, :get, :patch, :options], credentials
: false, expose
: ['Link', 'X-RateLimit-Reset', 'X-RateLimit-Limit', 'X-RateLimit-Remaining', 'X-Request-Id']
76 resource
'/oauth/token', headers
: :any, methods
: [:post], credentials
: false
80 config
.middleware
.use Rack
::Attack
81 config
.middleware
.use Rack
::Deflater
84 Doorkeeper
::AuthorizationsController.layout
'modal'
85 Doorkeeper
::AuthorizedApplicationsController.layout
'admin'
86 Doorkeeper
::Application.send
:include, ApplicationExtension
This page took 0.069232 seconds and 4 git commands to generate.