-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.env
More file actions
53 lines (42 loc) · 2.01 KB
/
sample.env
File metadata and controls
53 lines (42 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# =============================================================================
# tr-stack — Environment Configuration
# Copy to .env and fill in your values.
# =============================================================================
# IP to bind external ports (default: all interfaces)
# BIND_IP=192.168.1.100
# Port Caddy listens on
HTTP_PORT=80
# Public-facing address (what browsers use — your server's IP or hostname)
# Examples: http://192.168.1.100 or https://radio.example.com
SITE_ADDRESS=http://YOUR_SERVER_IP
# PostgreSQL credentials
POSTGRES_USER=trengine
POSTGRES_PASSWORD=change-me
POSTGRES_DB=trengine
# Auth — disabled by default for local installs
# Set AUTH_ENABLED=true and configure tokens/password for public-facing deployments
AUTH_ENABLED=false
# API tokens (only needed when AUTH_ENABLED=true)
# AUTH_TOKEN= # generate with: openssl rand -base64 32
# WRITE_TOKEN=
# ADMIN_PASSWORD=
# MQTT topics — must match your trunk-recorder plugin config
MQTT_TOPICS=tr/#
# Transcription provider
STT_PROVIDER=imbe
IMBE_ASR_URL=http://imbe-asr:8000
# IMBE-ASR model selection (downloads automatically from HuggingFace on first run)
# Options:
# trunk-reporter/imbe-asr-base-512d-p25 — P25 fine-tuned, best for live radio (default)
# trunk-reporter/imbe-asr-large-1024d — 290M model, best accuracy on clean speech
# trunk-reporter/imbe-asr-base-512d — base model, good for edge/Pi deployment
IMBE_ASR_MODEL=trunk-reporter/imbe-asr-base-512d-p25
IMBE_ASR_DEVICE=cuda # set to 'cpu' if no GPU (automatic with docker-compose.pi.yml)
# Raspberry Pi notes:
# - Use docker-compose.pi.yml override (sets cpu device + smaller model automatically)
# - The base-512d model is recommended for Pi — lower memory and faster inference
# - See README.md "Running on Raspberry Pi" section for full details
# Optional: point at trunk-recorder's audio dir for file-based ingest
# TR_AUDIO_DIR=/app/audio
# Path to libimbe.so on your host (required for IMBE decoding)
# LIBIMBE_PATH=/usr/local/lib/libimbe.so