Nenhuma descrição

Hal De dda8d6728f Initial code transfer from local repo (no history, sorry) 4 anos atrás
app dda8d6728f Initial code transfer from local repo (no history, sorry) 4 anos atrás
.env.dist dda8d6728f Initial code transfer from local repo (no history, sorry) 4 anos atrás
README.md dda8d6728f Initial code transfer from local repo (no history, sorry) 4 anos atrás
app.env.dist dda8d6728f Initial code transfer from local repo (no history, sorry) 4 anos atrás
docker-compose.yml dda8d6728f Initial code transfer from local repo (no history, sorry) 4 anos atrás

README.md

Quick Start:

git clone https://gogs.halsbox.ru/RRT/pbx.git
cd pbx
cp .env.dist .env
cp app.env.dist app.env

Edit .env and app.env with your preffered editor. Adjust environment variables for your needs. The most important variables to set are: | Variable | Description | | -------- | ----------- | | PERSISTENT_STORAGE_PATH | Host path for persistent data storage | | APP_FQDN | Domain name of the app | | APP_AMI_HOST | IP address of host (by default Asterisk runs in host network mode) | | APP_AMI_USERNAME | AMI username for the app | | APP_AMI_SECRET | AMI password for the app | | APP_AUTH_HEADER | HTTP header to use for the app auth | | APP_AUTH_SECRET | Secret string to authorize access to the app | | MYSQL_ROOT_PASSWORD | Set this to some secure password | | MYSQL_PASSWORD | Set this to some secure password | | FREEPBX_AMPMGRPASS | Password for Freepbx builtin AMI admin user, set it to some secure password | | FREEPBX_CDRDBPASS | Set it to same value as MYSQL_PASSWORD | | SENDMAIL_TG | Change to "true" if your want all mail from PBX to be forwarded to Telegram | | TG_BOT_APIKEY | Create Telegram bot using BotFather and put your new bot API key here | | TG_BOT_CHATID | Set destination Telegram User Id or Chat Id | | HTTPD_HTTPS_ENABLED | Set to "true" to enable HTTPS for Freepbx | | HTTPD_REDIRECT_HTTP_TO_HTTPS | Set to "true" to redirect HTTP requests to HTTPS | | LETSENCRYPT_ENABLED | Set to "true" to automatically request and maintain LetsEncrypt cert for HTTPS | | | Change following variables to desired values. Not required if SENDMAIL_TG=true. | | SMTP_MAIL_FROM | | ROOT_MAILTO | | FAIL2BAN_DEFAULT_DESTEMAIL | | FAIL2BAN_DEFAULT_SENDER |

Run:


docker-compose build

Wait paitently until you see: Successfully tagged halsbox/docker-freepbx:latest If running for first time it can take long to build everything.

Run:


docker-compose up -d

Run:


docker-compose logs -f pbx

Watch pbx container initialization for errors and wait for: fail2ban entered RUNNING state, process has stayed up for > than 5 seconds Close container log output with Ctrl+C keys.

Restart container with docker restart pbx if you set LETSENCRYPT_ENABLED to true.

Open the address you set for APP_FQDN in browser and configure Freepbx superadmin username and password. Proceed to voice language configuration. Finally press "Apply Config" button.

Run:


docker-compose logs -f app

Open http://APP_FQDN:8000/ui Test the API with youre configured APP_AUTH_SECRET