Proxy check URL: Difference between revisions

From Wiki Kaminari Click
(Marked this version for translation)
No edit summary
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
После того, как наш скрипт соберёт все данные о пользователе, он отправляет их на сервер по адресу https://kaminari.systems/v2/check.
After our script collects all user data, it sends it to the server at https://kaminari.systems/v2/check.  


<!--T:2-->
<!--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-->
<!--T:3-->
= Подключение опции =
= Option activation =
Для этого закажите у менеджера включение опции '''Proxy check URL''' на своей интеграции. После того как её включат, укажите в настройках свой URL.
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-->
<!--T:4-->
Line 15: Line 15:


<!--T:5-->
<!--T:5-->
'''Обратите внимание, что сразу после заполнения этого поля данные начнут отправляться на указанный URL. Оставьте его пустым до тех пор, пока не настроите проксирование на сервере.'''
'''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-->
<!--T:6-->
= Настройка на стороне клиента =
= Client-side configuration =
Для того, чтобы проксирование данных происходило корректно и мы получали все необходимые параметры нужно настроить сервер.
To ensure that proper data is proxying and we receive all necessary parameters, server configuration is required.


<!--T:7-->
<!--T:7-->
===== Настройка для Nginx =====
===== Configuration for Nginx =====
В блок http надо добавить:
Add the following to the http block:
<pre>
<pre>
upstream antifraud {
upstream antifraud {
Line 32: Line 32:


<!--T:8-->
<!--T:8-->
В конфиг надо добавить (в примере показан вариант с проксированием на эндпойнт <code>/antifraud</code>):
To the configuration, you need to add (the example demonstrates proxying to the <code>/antifraud</code> endpoint):
<pre>
<pre>
location /antifraud {
location /antifraud {

Latest revision as of 15:46, 30 November 2023

Other languages:

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

Proxy url.png

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;
}