> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/deploying/vms/milestone/configuration.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Configuration

Install the EyePop app, its .env settings, HTTPS, sign-in, and the EyePop API key

The EyePop app runs as a container **on the same host as the AI Bridge**, on the bridge's Docker network. Its settings live in a `.env` file, read at startup.

### Install the EyePop app

With XProtect and the AI Bridge running ([Prerequisites](https://docs.eyepop.ai/deploying/vms/milestone/prerequisites.md)):

1. In a new folder, create `compose.release.yaml`:

   ```yaml
   name: eyepop

   services:
     eyepop-milestone-iva:
       container_name: eyepop-milestone-iva
       image: ${EYEPOP_IMAGE}:${EYEPOP_IMAGE_TAG}
       env_file:
         - .env
       ports:
         - "7070:7070"
       # Only with HTTPS on (see "HTTPS" below).
       # volumes:
       #   - ./certs:/certs:ro
       networks:
         - aibridge
       tmpfs:
         - /tmp
       read_only: true
       restart: unless-stopped

   networks:
     aibridge:
       external: true
       name: ${AIBRIDGE_NETWORK:-aibridge_default}
   ```
2. Next to it, create `.env`:

   ```dotenv
   EYEPOP_IMAGE=registry.eyepop.ai/vms-bridge/eyepop-milestone-iva
   EYEPOP_IMAGE_TAG=v0.9.1

   # Copy from the AI Bridge's own .env: the values must match.
   KAFKA_LOG_RETENTION_MS=300000
   AIBRIDGE_NETWORK=aibridge_default

   # Keep as is: changing it registers a second app.
   EYEPOP_APP_ID=8b601dca-1fcf-44ef-ac66-80bb4659611d

   # The page's address, as Management Client reaches it.
   APP_URL=http://localhost:7070/
   # With HTTPS on (see "HTTPS" below), use these two instead:
   #APP_URL=https://localhost:7070/
   #EYEPOP_TLS_ENABLED="true"
   ```
3. Start it:

   ```shell
   docker compose -f compose.release.yaml up -d
   ```
4. In Management Client, open **Processing Servers → Registered applications → EyePop**. The EyePop page loads there. Set your [EyePop API key](#eyepop-api-key) on its **Configuration** tab.

### Settings

| Variable                                                                                 |                                                                                                                   |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `KAFKA_LOG_RETENTION_MS`                                                                 | **Required.** Same value as in the AI Bridge's `.env`.                                                            |
| `EYEPOP_IMAGE`, `EYEPOP_IMAGE_TAG`                                                       | The image and version to run.                                                                                     |
| `EYEPOP_APP_ID`                                                                          | The app's registration ID. Keep it unchanged.                                                                     |
| `APP_URL`                                                                                | The page's address as Management Client reaches it: `http://<host>:7070/`, or `https://` with [HTTPS](#https) on. |
| `EYEPOP_TLS_ENABLED`                                                                     | `"true"` serves the page over [HTTPS](#https). Off by default.                                                    |
| `EYEPOP_AUTH_TYPE`                                                                       | `"basic-user"` requires [signing in](#sign-in). Off by default.                                                   |
| `EYEPOP_TLS_CERT_FILE`, `EYEPOP_TLS_KEY_FILE`                                            | Only for certificate files with other names. Default: `/certs/landing-page.crt` and `.key`.                       |
| `AIB_GRAPHQL_URL`, `KAFKA_BOOTSTRAP_SERVERS`, `AIB_ENDPOINT_REWRITE`, `AIBRIDGE_NETWORK` | AI Bridge networking. The defaults work as is.                                                                    |

### HTTPS

Off by default, like the AI Bridge's own `TLS_ENABLED`. Without it, the page data there travel unencrypted. If you encrypt the AI Bridge, encrypt this page too.

1. Put the page's certificate and key (PEM) in a `certs` folder next to `compose.release.yaml`, as `landing-page.crt` and `landing-page.key`. Either:
   * **Reuse the AI Bridge's certificate.** It already covers this host:

     ```shell
     mkdir -p certs
     sudo cp <AI Bridge folder>/certs/tls-server/server.crt certs/landing-page.crt
     sudo cp <AI Bridge folder>/certs/tls-server/server.key certs/landing-page.key
     ```
   * **Or issue one from your CA**, as you did for the AI Bridge, and convert its `.pfx`:

     ```shell
     openssl pkcs12 -in server.pfx -clcerts -nokeys -out certs/landing-page.crt
     openssl pkcs12 -in server.pfx -nocerts -nodes -out certs/landing-page.key
     ```
2. On Linux, let the app (user 10001) read the key:

   ```shell
   sudo chown 10001 certs/landing-page.key && sudo chmod 600 certs/landing-page.key
   ```
3. Uncomment the `./certs:/certs:ro` lines in `compose.release.yaml`, and set in `.env`:

   ```dotenv
   EYEPOP_TLS_ENABLED="true"
   APP_URL=https://<host>:7070/
   ```
4. Restart: `docker compose -f compose.release.yaml up -d`.

Management Client only opens the page if its computer trusts the certificate. A certificate from your XProtect CA works without extra steps, since Milestone already requires that CA on every Management Client computer.

The app reads the certificate at startup: restart it after renewing the certificate. If the files are missing or don't match, the app won't start, and its log says why.

### Sign-in

Off by default: anyone who can reach the page can use it. To require signing in with an XProtect **basic user**, turn on [HTTPS](#https) first, then set in `.env`:

```dotenv
EYEPOP_AUTH_TYPE="basic-user"
```

* XProtect checks the username and password; the app never stores them.
* Sessions end after 30 minutes idle, after 8 hours, or when the app restarts.
* The app only sends passwords to XProtect after verifying XProtect's certificate. If XProtect's certificate comes from your own CA, copy that CA into `certs/` as `vms-authority.crt`.
* If XProtect can't be reached or verified, the page stays locked, and the app's log says why.

### EyePop API key

Set it on the EyePop page:

1. Get a key from your [EyePop dashboard](https://dashboard.eyepop.ai) ([how](https://docs.eyepop.ai/developer-documentation/api-keys)).
2. In Management Client, open **Processing Servers → Registered applications → EyePop**.
3. On the **Configuration** tab, paste the key and apply.

### Next steps

* [Running Detection](https://docs.eyepop.ai/deploying/vms/milestone/running-detection.md): subscribe a camera and see bounding boxes
* [Workflows](https://docs.eyepop.ai/deploying/vms/milestone/workflows.md): control what each camera detects


---

# 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://docs.eyepop.ai/deploying/vms/milestone/configuration.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.
