ENV Update
This commit is contained in:
14
README.md
14
README.md
@@ -43,6 +43,10 @@ Enterprise-style Scrum Poker application using Go, Gin, and SSE for real-time ro
|
||||
- `HOST`: server host/interface to bind (default all interfaces, equivalent to `0.0.0.0`)
|
||||
- `PORT`: server port (default `8002`)
|
||||
- `DATA_PATH`: directory for room JSON files (default `./data`)
|
||||
- `MAX_ACTIVITY_LOG_ENTRIES`: max stored activity log entries per room (default `400`)
|
||||
- `ADMIN_LOG_BROADCAST_LIMIT`: max recent admin log entries sent in SSE payloads (default `200`)
|
||||
- `STALE_ROOM_CLEANUP_INTERVAL`: cleanup ticker interval for stale rooms as Go duration (default `5m`)
|
||||
- `STALE_ROOM_TTL`: delete empty rooms when last activity is older than this Go duration (default `30m`)
|
||||
|
||||
## Run Locally
|
||||
|
||||
@@ -60,6 +64,16 @@ HOST=localhost PORT=8002 go run ./src
|
||||
HOST=0.0.0.0 PORT=8002 go run ./src
|
||||
```
|
||||
|
||||
State tuning example:
|
||||
|
||||
```bash
|
||||
MAX_ACTIVITY_LOG_ENTRIES=600 \
|
||||
ADMIN_LOG_BROADCAST_LIMIT=300 \
|
||||
STALE_ROOM_CLEANUP_INTERVAL=2m \
|
||||
STALE_ROOM_TTL=45m \
|
||||
go run ./src
|
||||
```
|
||||
|
||||
## Docker
|
||||
|
||||
Build:
|
||||
|
||||
Reference in New Issue
Block a user