Translations:Proxy check URL/8/en: Difference between revisions

From Wiki Kaminari Click
(Importing a new version from external source)
 
(Importing a new version from external source)
 
Line 1: Line 1:
В конфиг надо добавить (в примере показан вариант с проксированием на эндпойнт <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

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Proxy check URL)
To the configuration, you need to add (the example demonstrates proxying to the <code>/antifraud</code> endpoint):
<pre>
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;
}
</pre>
[[Category:Features]]

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