Translations:Proxy check URL/8/en: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
| Line 7: | Line 7: | ||
proxy_set_header Connection ""; | proxy_set_header Connection ""; | ||
proxy_set_header X-Forwarded-For $http_x_forwarded_for; | proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
proxy_set_header X- | proxy_set_header X-Original-IP $http_x_real_ip; | ||
proxy_pass http://kaminari.systems; | proxy_pass http://kaminari.systems; | ||
} | } | ||
</pre> | </pre> | ||
[[Category:Features]] | [[Category:Features]] | ||
Latest revision as of 10:38, 18 June 2025
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-Original-IP $http_x_real_ip;
proxy_pass http://kaminari.systems;
}