Proxy check URL: Difference between revisions

From Wiki Kaminari Click
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Подключение фичи =
<languages/>
После того, как наш скрипт закончит проверку он отправляет данные на https://kaminari.systems/v2/check.
<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.


Для этого нужно заказать у менеджера включение фичи '''Proxy check URL''' на интеграции. И после того как её включат указать настройках свой URL.
<!--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


'''Обратите внимание, что сразу после заполнения этого поля данные будут отправляться на указанный URL. Оставьте его пустым до тех пор, пока не настроите проксирование на сервере.'''
<!--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.


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


В конфиг надо добавить (в примере показан вариант с проксированием на эндпойнт <code>/check_url</code>):
<!--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 {
     rewrite /check_url /v2/check break;
     rewrite /antifraud /v2/check break;
     proxy_set_header Host kaminari.systems;
     proxy_set_header Host kaminari.systems;
     proxy_http_version 1.1;
     proxy_http_version 1.1;
Line 36: Line 46:
</pre>
</pre>
[[Category:Features]]
[[Category:Features]]
</translate>

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