mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
1ca0fd1b23
* added nodemailer and mjml * added email template * basic email util file * added email queue * email worker * renamed folder * showing which queues and workers were initialized * initializing email on server boot added some test code * renamed to email worker * type fix * renamed queue * added queue to list * added worker to list * logging when config was verified * handling send mail result * not minifying (not supported anymore) using .html property returning correct value * dont send me emails * added port to .env * updated example * updated test email * using env email * parseint base * message * refactor * message * rename * moved email templates * using async file read * typo * using mustache * moved file renamed to email client * logging with prometheus * added social links * line * using stronger types (object instead of array of any[]) moved prometheus logging into email client added function to send mail using a template * fixed templates not working * removed console log * name change * rename * moved templates * rename * string interpolation * string interpolation * moved to dev dependencies, exact versions * moved types * removed function, remove unnecessary if * update template params * updated name * fixed button not clickable * throwing * moved template metadata to one place * rename * sending email on account creation * removed test code removed await * fixed button * not stopping the server if email client validation failed * added metric for queue lengths * exposing getjobcounts * added job to log queue lengths * added endpoint to request verification email * using send verification email that calls api instead of firebase built in * updated route * renamed function * recording time to complete * returning 400 if email already verified * setting transport initialized to true earlier, setting it to false if caught error * moved forgot password flow to a simple popup, added new endpoint to ape * added forgotpasswordemail route * added email tempalte * setting transport to false if caught error * added email queue function * moved try higher * fixed log
23 lines
616 B
Bash
23 lines
616 B
Bash
DB_NAME=monkeytype
|
|
DOCKER_DB_PORT=27017
|
|
DB_URI=mongodb://localhost:27017
|
|
DOCKER_REDIS_PORT=6379
|
|
REDIS_URI=redis://localhost:6379
|
|
LOG_FOLDER_PATH=./logs/
|
|
# Default log file max size is 10 MB
|
|
LOG_FILE_MAX_SIZE=10485760
|
|
MODE=dev
|
|
# You can also use the format mongodb://username:password@host:port or
|
|
# uncomment the following lines if you want to define them separately
|
|
# DB_USERNAME=
|
|
# DB_PASSWORD=
|
|
# DB_AUTH_MECHANISM="SCRAM-SHA-256"
|
|
# DB_AUTH_SOURCE=admin
|
|
|
|
# You can get a testing email address over at
|
|
# https://ethereal.email/create
|
|
#
|
|
# EMAIL_PORT=587
|
|
# EMAIL_HOST=smtp.ethereal.email
|
|
# EMAIL_USER=
|
|
# EMAIL_PASS=
|