Mercurial > rsstweet
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/initializers/00rsstweet.rb Mon Dec 16 01:39:38 2024 +0900 @@ -0,0 +1,16 @@ +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