Skip to content

Commit bd5061e

Browse files
committed
Example configs
1 parent 3044f90 commit bd5061e

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Client Configurations
2+
3+
This directory contains client configuration files for the Browser Agent Server.
4+
5+
## File Naming Convention
6+
7+
Client configuration files **must** be named using the client's UUID:
8+
9+
```
10+
{client-uuid}.yaml
11+
```
12+
13+
Example:
14+
```
15+
9907fd8d-92a8-4a6a-bce9-458ec8c57306.yaml
16+
```
17+
18+
## Creating a New Client
19+
20+
1. Copy `example-client.yaml` to a new file with your client's UUID:
21+
```bash
22+
cp example-client.yaml {your-client-uuid}.yaml
23+
```
24+
25+
2. Edit the new file and update:
26+
- `client.id` - Must match the filename (without .yaml extension)
27+
- `client.name` - A friendly name for the client
28+
- `client.secret_key` - Authentication secret (default: "hello")
29+
- `client.description` - Description of the client
30+
31+
## Auto-Discovery
32+
33+
The server automatically discovers and loads all `.yaml` files in this directory on startup. The filename (without extension) is used as the client ID.
34+
35+
## Security Note
36+
37+
Client configuration files contain secret keys and are excluded from version control via `.gitignore`. Keep these files secure and never commit them to the repository.
38+
39+
## Example Configuration
40+
41+
See `example-client.yaml` for a template configuration file.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Example Client Configuration
2+
#
3+
# To create a new client:
4+
# 1. Copy this file and rename it to: {client-uuid}.yaml
5+
# Example: 9907fd8d-92a8-4a6a-bce9-458ec8c57306.yaml
6+
# 2. Update the client ID to match the filename
7+
# 3. Set a secret key for authentication
8+
#
9+
# The filename MUST match the client ID for proper client discovery.
10+
11+
client:
12+
id: YOUR-CLIENT-UUID-HERE
13+
name: My DevTools Client
14+
secret_key: your-secret-key-here
15+
description: Browser Operator DevTools client

0 commit comments

Comments
 (0)