Skip to content

Commit

Permalink
Fixed IP detection on nginx servers. Fixes geoip, tm_cache, botprotec…
Browse files Browse the repository at this point in the history
…tion and tm_secure
  • Loading branch information
vovayatsyuk committed Apr 6, 2017
1 parent bc89c14 commit 3142dea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/code/community/TM/Core/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
</connection>
</tm_core_setup>
</resources>
<!-- nginx ip detection. @see Mage::helper('core/http')->getRemoteAddrHeaders() -->
<remote_addr_headers>
<header_tmcore_http_x_real_ip>HTTP_X_REAL_IP</header_tmcore_http_x_real_ip>
<header_tmcore_http_x_forewarded_for>HTTP_X_FORWARDED_FOR</header_tmcore_http_x_forewarded_for>
</remote_addr_headers>
<events>
<core_layout_update_updates_get_after>
<observers>
Expand Down

0 comments on commit 3142dea

Please sign in to comment.