Mercurial > rsstweet
annotate config/application.rb @ 249:9e5f9ffa4077
Snake case
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 17 Jul 2023 04:40:46 +0900 |
parents | 01f3a7e073c3 |
children | 89f6c0016bab |
rev | line source |
---|---|
185 | 1 require_relative 'boot' |
0 | 2 |
148 | 3 require "rails" |
0 | 4 # Pick the frameworks you want: |
33
9defe1ae5814
Remove ActiveModel dependency.
edogawaconan <me@myconan.net>
parents:
28
diff
changeset
|
5 # require "active_model/railtie" |
148 | 6 # require "active_job/railtie" |
0 | 7 # require "active_record/railtie" |
148 | 8 # require "active_storage/engine" |
0 | 9 require "action_controller/railtie" |
1 | 10 # require "action_mailer/railtie" |
185 | 11 # require "action_mailbox/engine" |
12 # require "action_text/engine" | |
0 | 13 require "action_view/railtie" |
148 | 14 # require "action_cable/engine" |
0 | 15 # require "sprockets/railtie" |
16 require "rails/test_unit/railtie" | |
17 | |
185 | 18 require_relative 'config_init' |
19 ENV['RAILS_LOG_TO_STDOUT'] = '1' | |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
20 |
0 | 21 # Require the gems listed in Gemfile, including any gems |
22 # you've limited to :test, :development, or :production. | |
23 Bundler.require(*Rails.groups) | |
24 | |
25 module Rsstweet | |
26 class Application < Rails::Application | |
214 | 27 # Initialize configuration defaults for originally generated Rails version. |
223 | 28 config.load_defaults 7.0 |
0 | 29 # Settings in config/environments/* take precedence over those specified here. |
185 | 30 # Application configuration can go into files in config/initializers |
31 # -- all .rb files in that directory are automatically loaded after loading | |
32 # the framework and any gems in your application. | |
0 | 33 |
215
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
34 # this isn't actually used but railties *production* checks this variable during boot. |
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
35 config.secret_key_base = "herp a derp" |
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
36 |
185 | 37 config.middleware.delete ActionDispatch::HostAuthorization |
72 | 38 config.middleware.delete ActionDispatch::Cookies |
216 | 39 config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware |
40 config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware | |
41 config.middleware.delete ActionDispatch::RemoteIp | |
42 | |
39 | 43 config.session_store :disabled |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
44 |
110 | 45 if $cfg[:redis_server] |
231 | 46 config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" } |
28 | 47 end |
0 | 48 end |
49 end |