Implement .env configuration
This commit is contained in:
@@ -44,6 +44,15 @@ export VOIPMS_API_USERNAME='you@example.com'
|
||||
export VOIPMS_API_PASSWORD='your-api-password'
|
||||
```
|
||||
|
||||
It also loads a project-root `.env` file when present:
|
||||
|
||||
```bash
|
||||
cp .env-example .env
|
||||
```
|
||||
|
||||
Values already exported in the process environment, and values passed with CLI
|
||||
options, take precedence over `.env` values.
|
||||
|
||||
Credentials can also be passed directly:
|
||||
|
||||
```bash
|
||||
@@ -51,6 +60,7 @@ Credentials can also be passed directly:
|
||||
```
|
||||
|
||||
The endpoint can be overridden with `VOIPMS_API_ENDPOINT` or `--endpoint`.
|
||||
CDR timezone defaults can be set with `VOIPMS_TIMEZONE`.
|
||||
|
||||
## CLI Overview
|
||||
|
||||
@@ -261,9 +271,8 @@ be run behind a trusted network, firewall, VPN, or tunnel.
|
||||
Start it with:
|
||||
|
||||
```bash
|
||||
export VOIPMS_API_USERNAME='you@example.com'
|
||||
export VOIPMS_API_PASSWORD='your-api-password'
|
||||
export MCP_AUTH_TOKEN='choose-a-long-random-token'
|
||||
cp .env-example .env
|
||||
# Edit .env and optionally add MCP_AUTH_TOKEN='choose-a-long-random-token'
|
||||
|
||||
./bin/serve-mcp.sh
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user