Proxy check URL: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
<!--T:1--> | |||
After our script collects all user data, it sends it to the server at https://kaminari.systems/v2/check. | |||
<!--T:2--> | |||
If you want to reduce the percentage of technical losses by creating for the browser the appearance that the submission is within one domain, you can proxy the data submission through your own domain. | |||
<!--T:3--> | |||
= Option activation = | |||
To achieve this, request the activation of the '''Proxy check URL''' option from your manager for your integration. Once enabled, specify your URL in the settings | |||
<!--T:4--> | |||
[[File:Proxy url.png]] | [[File:Proxy url.png]] | ||
''' | <!--T:5--> | ||
'''Please note that immediately after filling in this field, data will start to be sent to the specified URL. Leave it empty until you set up the proxy on your server.''' | |||
= | <!--T:6--> | ||
= Client-side configuration = | |||
To ensure that proper data is proxying and we receive all necessary parameters, server configuration is required. | |||
===== | <!--T:7--> | ||
===== Configuration for Nginx ===== | |||
Add the following to the http block: | |||
<pre> | <pre> | ||
upstream antifraud { | upstream antifraud { | ||
Line 22: | Line 31: | ||
</pre> | </pre> | ||
<!--T:8--> | |||
To the configuration, you need to add (the example demonstrates proxying to the <code>/antifraud</code> endpoint): | |||
<pre> | <pre> | ||
location /antifraud { | location /antifraud { | ||
Line 36: | Line 46: | ||
</pre> | </pre> | ||
[[Category:Features]] | [[Category:Features]] | ||
</translate> |
Latest revision as of 15:46, 30 November 2023
After our script collects all user data, it sends it to the server at https://kaminari.systems/v2/check.
If you want to reduce the percentage of technical losses by creating for the browser the appearance that the submission is within one domain, you can proxy the data submission through your own domain.
Option activation
To achieve this, request the activation of the Proxy check URL option from your manager for your integration. Once enabled, specify your URL in the settings
Please note that immediately after filling in this field, data will start to be sent to the specified URL. Leave it empty until you set up the proxy on your server.
Client-side configuration
To ensure that proper data is proxying and we receive all necessary parameters, server configuration is required.
Configuration for Nginx
Add the following to the http block:
upstream antifraud { server kaminari.systems; keepalive 10; }
To the configuration, you need to add (the example demonstrates proxying to the /antifraud
endpoint):
location /antifraud { rewrite /antifraud /v2/check break; proxy_set_header Host kaminari.systems; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_set_header X-Forwarded-For $http_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-KUser-IP $http_x_real_ip; proxy_pass http://kaminari.systems; }