> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veriox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Worker Options

> All configuration options for your Veriox worker.

All Veriox worker settings are managed from the portal — there's nothing to configure in the worker code or `wrangler.toml`. Changes take effect within a few minutes without redeploying.

## Portal configuration

Go to your worker in [portal.veriox.io](https://portal.veriox.io) → **Configuration** to manage all of the following settings.

| Setting                | Default       | Description                                                                                                                                                           |
| ---------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Age Threshold**      | 18            | The minimum age visitors must prove. See [age thresholds](/configuration/age-thresholds).                                                                             |
| **Session Duration**   | 24 hours      | How long a verified session lasts before the visitor must verify again. See [session duration](/configuration/session-duration).                                      |
| **Automated Trigger**  | Never         | Whether the popup appears on its own: every page, specific pages, or never. See [popup behaviour](/configuration/popup-behaviour).                                    |
| **Manual Trigger**     | None          | CSS selectors for buttons that stay blocked until the visitor verifies. See [popup behaviour](/configuration/popup-behaviour).                                        |
| **Location Targeting** | All countries | Scope the automated trigger to specific countries, based on the visitor's network location. See [popup behaviour](/configuration/popup-behaviour#location-targeting). |
| **Allow Dismiss**      | Off           | Whether visitors can close the popup without verifying.                                                                                                               |

***

## For developers — Wrangler CLI

The behavioural settings above are **not** worker variables — they live in the portal and are applied to your worker automatically. The only thing the worker itself needs is your private key, set as a secret.

### Secrets

| Secret               | Required | Description                                                                                                                                                        |
| -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `VERIOX_PRIVATE_KEY` | Yes      | Your ECDSA private key (PKCS8, base64). Signs every request to the Veriox Platform API and is never transmitted. Set via `wrangler secret put VERIOX_PRIVATE_KEY`. |

### Built-in values

Your **Worker ID** is baked into the worker code when you download it from the portal — there's no variable to set. (For local development only, you can override it with a `VERIOX_WORKER_ID` value in `.dev.vars`.)

### Example wrangler.toml

```toml theme={null}
name = "my-site-age-verification"
main = "veriox-worker.js"
compatibility_date = "2024-05-01"
compatibility_flags = ["nodejs_compat"]
```

<Info>
  To change any verification setting, update it in the portal — it takes effect within a few minutes with no redeploy.
</Info>
