How to disable ip spoofing in gitlab


I need to disable ip spoofing check in Gitlab.

I tried adding this line to the gitlab.rb file under /etc/gitlab:
config.action_patch.ip_spoofing_check = false

but i get an undefined error when i run gitlab-ctl reconfigure

undefined method ‘action_dispatch’ for nil:NilClass

I’m struggling to see where to add this line or if i’m doing it correctly. Would appreciate some help please.

Figured it out. Navigate to the following file and change the boolean value of @check_ip_spoofing from true to false and reconfigure and then restart

Which File? I have the same issue :confused: