X-Forwarded-For fix

This commit is contained in:
2026-08-25 14:57:08 +02:00
parent fc1076f8fc
commit b51bf0d094
+5
View File
@@ -24,6 +24,11 @@ module Api
config.action_controller.forgery_protection_origin_check = false
config.action_dispatch.trusted_proxies = ActionDispatch::RemoteIp::TRUSTED_PROXIES + [
IPAddr.new("172.16.0.0/12"),
IPAddr.new("10.0.0.0/8")
]
config.autoload_lib(ignore: %w[assets tasks])
config.x.site_url = ENV.fetch("SITE_URL", "https://teletypegames.org")