This is a web messenger developed on the Webman PHP-framework using WebSocket for messaging.
user: demo/demo
Choose one of the two options.
-
Install with Docker Compose
git clone https://github.com/aluxins/messenger cd messenger docker-compose up -d docker exec -it messenger-php composer update docker restart messenger-php
Open in your browser http://<your_domain>/messenger/
-
Install from source
git clone https://github.com/aluxins/messenger cd messenger/src composer install php start.php start -d
Open in your browser http://localhost:2345/
If you chose the second option, take care of importing the database .docker/mysql/dump.sql to your MySQL/MariaDB server. And edit the database connection in the file src/config/database.php.
Environment Variables:
- SERVER_WS - WebSocket server, ex. wss://<your_domain>/wss.
- SERVER_BASE - The base URL for < base > HTML element.
If you want to use the WSS protocol for WebSocket, choose one of two options
-
Change the configuration config/app.php according to the documentation:
-
Using NGINX as a WebSocket Proxy. Change your nginx.conf according to the documentation: