view 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
line wrap: on
line source

require_relative "../config_init"

# this isn't actually used but railties *production* checks this variable during boot.
Rails.application.config.secret_key_base = "herp a derp"

Rails.application.config.middleware.delete ActionDispatch::HostAuthorization
Rails.application.config.middleware.delete ActionDispatch::Cookies
Rails.application.config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware
Rails.application.config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware
Rails.application.config.middleware.delete ActionDispatch::RemoteIp

Rails.application.config.session_store :disabled

if $cfg[:redis_server]
  Rails.application.config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" }
end