comparison config/application.rb @ 262:cd927bb7dc0d

Move out custom application config
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:39:38 +0900
parents e2150dce4e90
children
comparison
equal deleted inserted replaced
261:8c47a69cbfdb 262:cd927bb7dc0d
11 # require "action_mailbox/engine" 11 # require "action_mailbox/engine"
12 # require "action_text/engine" 12 # require "action_text/engine"
13 require "action_view/railtie" 13 require "action_view/railtie"
14 # require "action_cable/engine" 14 # require "action_cable/engine"
15 require "rails/test_unit/railtie" 15 require "rails/test_unit/railtie"
16
17 require_relative "config_init"
18 16
19 # Require the gems listed in Gemfile, including any gems 17 # Require the gems listed in Gemfile, including any gems
20 # you've limited to :test, :development, or :production. 18 # you've limited to :test, :development, or :production.
21 Bundler.require(*Rails.groups) 19 Bundler.require(*Rails.groups)
22 20
35 # These settings can be overridden in specific environments using the files 33 # These settings can be overridden in specific environments using the files
36 # in config/environments, which are processed later. 34 # in config/environments, which are processed later.
37 # 35 #
38 # config.time_zone = "Central Time (US & Canada)" 36 # config.time_zone = "Central Time (US & Canada)"
39 # config.eager_load_paths << Rails.root.join("extras") 37 # config.eager_load_paths << Rails.root.join("extras")
40
41 # this isn't actually used but railties *production* checks this variable during boot.
42 config.secret_key_base = "herp a derp"
43
44 config.middleware.delete ActionDispatch::HostAuthorization
45 config.middleware.delete ActionDispatch::Cookies
46 config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware
47 config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware
48 config.middleware.delete ActionDispatch::RemoteIp
49
50 config.session_store :disabled
51
52 if $cfg[:redis_server]
53 config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" }
54 end
55 end 38 end
56 end 39 end