Configuration
All configurations should be stored in a .env
file. Here is an example of configuration:
PORT=2010
HOST=localhost
BASE_URL=http://localhost:2010
MONGODB_URI=mongodb://mongo:27017/authembed?authSource=admin
JWT_SECRET=keyboard cat
REGISTRATION_SUCCESS_REDIRECT_URL=http://localhost:3000
EMAIL_SUCCESSFULLY_VERIFIED_REDIRECT_URL=http://localhost:3000
ADMIN_PASSWORD=qwerty
SMTP_URI=smtps://user%40example.com:password@smtp.example.com
EMAIL_FROM="Authembed" <user@example.com>
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=root
DOCKER_COMPOSE_WEB_PORT=127.0.0.1:2010
There is also configurations that should be stored in config.json
file. It is used to configure triggers, but for now, leave it empty:
{}
Email templates
On how to configure email templates and use your own custom branded email see Email Templates.
Last updated
Was this helpful?