-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.env.example
More file actions
66 lines (55 loc) · 1.87 KB
/
.env.example
File metadata and controls
66 lines (55 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
63
64
65
66
# ============================================================
# PBX API — Environment Variables
# Copy this file to .env and fill in your values.
# NEVER commit .env to version control.
# ============================================================
# ----- API Security -----
# A random 50-character secret used to authenticate every request.
# Generate one at: https://www.lastpass.com/password-generator
API_SECRET_KEY=YOUR_SECRETKEY_50_RANDOM_CHARS
# ----- PBX Driver -----
# Which driver to use: asterisk | issabel | freepbx
PBX_DRIVER=asterisk
# ----- Asterisk Manager Interface (AMI) -----
AMI_HOST=127.0.0.1
AMI_PORT=5038
# Leave empty to auto-detect from manager.conf
AMI_USERNAME=
AMI_SECRET=
# Path to manager.conf (used when AMI_USERNAME is empty)
AMI_CONF_PATH=/etc/asterisk/manager.conf
# ----- Asterisk REST Interface (ARI) — Asterisk 12+ -----
ARI_ENABLED=false
ARI_HOST=127.0.0.1
ARI_PORT=8088
ARI_USERNAME=ari_user
ARI_SECRET=ari_password
ARI_SCHEME=http
# ----- SIP / PJSIP channel driver -----
# Which channel driver the server uses: pjsip | sip
# Modern Asterisk (>= 13) defaults to pjsip.
CHAN_DRIVER=pjsip
# Path to SIP additional config (legacy chan_sip)
SIP_CONF_PATH=/etc/asterisk/sip_additional.conf
# Path to PJSIP endpoints config (chan_pjsip)
PJSIP_CONF_PATH=/etc/asterisk/pjsip.conf
# ----- Database -----
DB_HOST=localhost
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD=
DB_CHARSET=utf8mb4
# ----- Issabel-specific -----
# Path to issabel.conf (used when PBX_DRIVER=issabel)
ISSABEL_CONF_PATH=/etc/issabel.conf
# ----- FreePBX-specific -----
# Path to freepbx.conf (used when PBX_DRIVER=freepbx)
FREEPBX_CONF_PATH=/etc/freepbx.conf
# ----- Recordings -----
RECORDINGS_PATH=/var/spool/asterisk/monitor
# ----- Logging -----
# error | warning | info | debug
LOG_LEVEL=error
LOG_PATH=/var/log/pbx-api.log
# ----- CORS (optional, for web frontends) -----
CORS_ALLOWED_ORIGINS=*