comparison config/application.rb @ 216:2a3c7db6007a

Remove more middlewares
author nanaya <me@nanaya.pro>
date Fri, 11 Dec 2020 03:55:56 +0900
parents 1c1f761f2dcc
children ad6264cca788
comparison
equal deleted inserted replaced
215:1c1f761f2dcc 216:2a3c7db6007a
34 # this isn't actually used but railties *production* checks this variable during boot. 34 # this isn't actually used but railties *production* checks this variable during boot.
35 config.secret_key_base = "herp a derp" 35 config.secret_key_base = "herp a derp"
36 36
37 config.middleware.delete ActionDispatch::HostAuthorization 37 config.middleware.delete ActionDispatch::HostAuthorization
38 config.middleware.delete ActionDispatch::Cookies 38 config.middleware.delete ActionDispatch::Cookies
39 config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware
40 config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware
41 config.middleware.delete ActionDispatch::RemoteIp
42
39 config.session_store :disabled 43 config.session_store :disabled
40 44
41 if $cfg[:redis_server] 45 if $cfg[:redis_server]
42 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } 46 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours }
43 end 47 end