262
|
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
|