> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge-ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-administratora/web-adapter.md).

# Конфигурация Web Adapter

Внимание: данная статья предназначена только для тех, кто пользуется или планирует пользоваться Oz Web SDK на собственных серверах.

{% hint style="warning" %}
Если вы используете Oz Web SDK по модели SaaS, пожалуйста, обращайтесь к нашим инженерам.
{% endhint %}

<figure><img src="https://2041336905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLoHbtSPFA1Ul7oKM5SC%2Fuploads%2FJwd0kp7FtwfXUH8Vdf9f%2Fcomponents-public-webadapter.svg?alt=media&amp;token=396bfc9c-926a-468c-b202-5b0f648a9422" alt=""><figcaption></figcaption></figure>

Настройка Oz Liveness WEB Adapter производится путем изменения конфигурационного файла, расположенного на сервере Oz Liveness WEB Adapter по пути `/core/app_config.json`

<details>

<summary><strong>Внимание</strong>: информация ниже предназначена только для тех, кто пользуется или планирует пользоваться Oz Web SDK на собственных серверах.</summary>

Перед началом работы желательно получить токен доступа.

1. Создайте сервисную учетную запись (по умолчанию срок действия токена такой записи составляет 5 лет).
2. Установите ПО Postman и скачайте нужную коллекцию API [отсюда](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/postman.md).
3. Авторизуйтесь с помощью запроса `POST` `{{host}}/api/authorize/auth`, где `{{host}}` — адрес сервера API. В теле запроса укажите логин и пароль от созданной в п. 1 сервисной учетной записи. Более подробно авторизация описана [здесь](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/autentifikaciya-i-obrabotka-dannykh/tokens.md).
4. В ответе вам придет параметр `access_token`. Его значение нужно указать в параметре `api_token` файла настроек `/core/app_config.json`. В параметре `api_use_token` укажите `config`. Готово.

</details>

Образец кода Oz Liveness Web SDK находится [здесь](https://gitlab.com/oz-forensics/oz-liveness-sample-web/-/blob/master/OzLivenessWebSDKSample.html). Чтобы все работало корректно, нужно заменить `<web-adapter-url>` на полученную от нас ссылку на Web Adapter.

Для Angular и React нужно заменить `https://<link>.ozforensics.com` в index.html.

* Образец кода для [Angular](https://gitlab.com/oz-forensics/oz-liveness-sample-web-angular)
* Образец кода для [React](https://gitlab.com/oz-forensics/oz-liveness-sample-web-react/-/tree/main/public)

{% content-ref url="/pages/MTGG25PLac7AecXtuViH" %}
[Настройки файла конфигурации](/oz-knowledge-ru/rukovodstva/rukovodstvo-administratora/web-adapter/nastroiki-faila-konfiguracii.md)
{% endcontent-ref %}

{% content-ref url="/pages/JpQvreNYeIANN92SkYjt" %}
[Настройка Web Adapter через переменные окружения](/oz-knowledge-ru/rukovodstva/rukovodstvo-administratora/web-adapter/nastroika-web-adapter-cherez-peremennye-okruzheniya.md)
{% endcontent-ref %}

{% content-ref url="/pages/aodAr0aBwVUNp7VN0FfF" %}
[Настройка сервера через переменные окружения](/oz-knowledge-ru/rukovodstva/rukovodstvo-administratora/web-adapter/nastroika-servera-cherez-peremennye-okruzheniya.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-administratora/web-adapter.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
