comparison config/initializers/00rsstweet.rb @ 262:cd927bb7dc0d

Move out custom application config
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:39:38 +0900
parents
children
comparison
equal deleted inserted replaced
261:8c47a69cbfdb 262:cd927bb7dc0d
1 require_relative "../config_init"
2
3 # this isn't actually used but railties *production* checks this variable during boot.
4 Rails.application.config.secret_key_base = "herp a derp"
5
6 Rails.application.config.middleware.delete ActionDispatch::HostAuthorization
7 Rails.application.config.middleware.delete ActionDispatch::Cookies
8 Rails.application.config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware
9 Rails.application.config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware
10 Rails.application.config.middleware.delete ActionDispatch::RemoteIp
11
12 Rails.application.config.session_store :disabled
13
14 if $cfg[:redis_server]
15 Rails.application.config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" }
16 end