Mercurial > rsstweet
annotate config/application.rb @ 256:604b69827fb2
Add default public files
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:48:13 +0900 |
parents | eda83610b65c |
children | e2150dce4e90 |
rev | line source |
---|---|
254 | 1 require_relative "boot" |
0 | 2 |
148 | 3 require "rails" |
0 | 4 # Pick the frameworks you want: |
254 | 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 "rails/test_unit/railtie" |
16 | |
254 | 17 require_relative "config_init" |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
18 |
0 | 19 # Require the gems listed in Gemfile, including any gems |
20 # you've limited to :test, :development, or :production. | |
21 Bundler.require(*Rails.groups) | |
22 | |
23 module Rsstweet | |
24 class Application < Rails::Application | |
214 | 25 # Initialize configuration defaults for originally generated Rails version. |
255 | 26 config.load_defaults 8.0 |
254 | 27 |
28 # Please, add to the `ignore` list any other `lib` subdirectories that do | |
29 # not contain `.rb` files, or that should not be reloaded or eager loaded. | |
30 # Common ones are `templates`, `generators`, or `middleware`, for example. | |
31 config.autoload_lib(ignore: %w[assets tasks]) | |
32 | |
33 # Configuration for the application, engines, and railties goes here. | |
34 # | |
35 # These settings can be overridden in specific environments using the files | |
36 # in config/environments, which are processed later. | |
37 # | |
38 # config.time_zone = "Central Time (US & Canada)" | |
39 # config.eager_load_paths << Rails.root.join("extras") | |
0 | 40 |
215
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
41 # 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
|
42 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
|
43 |
185 | 44 config.middleware.delete ActionDispatch::HostAuthorization |
72 | 45 config.middleware.delete ActionDispatch::Cookies |
216 | 46 config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware |
47 config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware | |
48 config.middleware.delete ActionDispatch::RemoteIp | |
49 | |
39 | 50 config.session_store :disabled |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
51 |
110 | 52 if $cfg[:redis_server] |
231 | 53 config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" } |
28 | 54 end |
0 | 55 end |
56 end |