Skip to content

Commit 109fcac

Browse files
[mirotalkwebrtc] - add mailpit
1 parent 3bbc9ac commit 109fcac

5 files changed

Lines changed: 31 additions & 10 deletions

File tree

.env.template

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ====================================================
2-
# MiroTalk WEB v.1.3.40 - Environment Configuration
2+
# MiroTalk WEB v.1.3.41 - Environment Configuration
33
# ====================================================
44

55
# App environment
@@ -53,11 +53,13 @@ MONGO_URL=mongodb://root:rootpassword@mongodb:27017
5353
# Email config
5454

5555
EMAIL_VERIFICATION=false # true or false
56-
EMAIL_HOST=emailHost
57-
EMAIL_PORT=emailPort
58-
EMAIL_USERNAME=emailUsername
59-
EMAIL_PASSWORD=emailPassword
60-
EMAIL_FROM=
56+
57+
# Mailpit (local email testing) run in dev with: npm run mailpit:up url: http://localhost:8025
58+
EMAIL_HOST=localhost
59+
EMAIL_PORT=1025
60+
EMAIL_USERNAME=
61+
EMAIL_PASSWORD=
62+
EMAIL_FROM=test@mirotalk.com
6163

6264
# User allowed without requiring registration for demonstration purposes of the platform
6365

docker-compose-mailpit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
services:
2+
mailpit:
3+
image: axllent/mailpit:latest
4+
container_name: mirotalkmailpit
5+
restart: unless-stopped
6+
ports:
7+
- '${MAILPIT_HTTP_PORT:-8025}:8025'
8+
- '${MAILPIT_SMTP_PORT:-1025}:1025'
9+
volumes:
10+
- './.mailpit_data:/data'
11+
environment:
12+
MP_DATABASE: /data/mailpit.db
13+
MP_MAX_MESSAGES: 5000
14+
15+
volumes:
16+
mailpit_data:
17+
driver: local

frontend/js/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @license For private project or commercial purposes contact us at: license.mirotalk@gmail.com or purchase it directly via Code Canyon:
1010
* @license https://codecanyon.net/item/a-selfhosted-mirotalks-webrtc-rooms-scheduler-server/42643313
1111
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
12-
* @version 1.3.40
12+
* @version 1.3.41
1313
*/
1414

1515
const userAgent = navigator.userAgent;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mirotalkwebrtc",
3-
"version": "1.3.40",
3+
"version": "1.3.41",
44
"description": "MiroTalk WebRTC admin",
55
"main": "server.js",
66
"scripts": {
@@ -10,6 +10,8 @@
1010
"cfg": "cp backend/config.template.js backend/config.js",
1111
"mongo:up": "docker-compose -f docker-compose-mongo.yml up -d",
1212
"mongo:down": "docker-compose -f docker-compose-mongo.yml down",
13+
"mailpit:up": "docker-compose -f docker-compose-mailpit.yml up -d",
14+
"mailpit:down": "docker-compose -f docker-compose-mailpit.yml down",
1315
"test": "echo \"Error: no test specified\" && exit 1",
1416
"lint": "npx prettier --write .",
1517
"docker-build": "docker build --tag mirotalk/webrtc:latest .",

0 commit comments

Comments
 (0)