annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
262
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
1 require_relative "../config_init"
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
2
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
3 # this isn't actually used but railties *production* checks this variable during boot.
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
4 Rails.application.config.secret_key_base = "herp a derp"
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
5
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
6 Rails.application.config.middleware.delete ActionDispatch::HostAuthorization
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
7 Rails.application.config.middleware.delete ActionDispatch::Cookies
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
8 Rails.application.config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
9 Rails.application.config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
10 Rails.application.config.middleware.delete ActionDispatch::RemoteIp
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
11
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
12 Rails.application.config.session_store :disabled
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
13
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
14 if $cfg[:redis_server]
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
15 Rails.application.config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" }
cd927bb7dc0d Move out custom application config
nanaya <me@nanaya.net>
parents:
diff changeset
16 end