d4b3ba4baa
* [#139] Delayed emails for conversations * Added the setex and get methods to Redis wrapper * Set the priorities for the sidekiq queues * Was not able to use mailhog for testing email in local, switched back to letter opener and added comments on using the SMTP settings * Added after create hood in messages to queue the sending of mail after 2 minutes using sidekiq worker and also set the redis key for the conversation to avoid the email sending for every message * Added the sidekiq worker to send the email and delete the conversation redis key * Added the mailer and mail template * mailer sends the last 10 messages along with the new messages from the time it was queued * Send email only in development or if smtp config is set * Send email only in development or if smtp config is set * Set the SMTP_PORT in production variable * Adding redis to circle CI * Specs for the conversation email changes * Added specs for conversation email sidekiq worker * Added specs for conversation mailer * Added specs in message model for the after create hook for notify email * Send emails only when there is a reply from agent * set development to use mailhog * Adding comments for using letter opener
52 lines
No EOL
1 KiB
Text
52 lines
No EOL
1 KiB
Text
REDIS_URL=redis://redis:6379
|
|
SECRET_KEY_BASE=
|
|
|
|
# Postgres Database config variables
|
|
POSTGRES_HOST=postgres
|
|
POSTGRES_USERNAME=postgres
|
|
POSTGRES_PASSWORD=
|
|
RAILS_ENV=development
|
|
RAILS_MAX_THREADS=5
|
|
|
|
#fb app
|
|
FB_VERIFY_TOKEN=
|
|
FB_APP_SECRET=
|
|
FB_APP_ID=
|
|
|
|
#mail
|
|
MAILER_SENDER_EMAIL=accounts@chatwoot.com
|
|
SMTP_PORT=1025
|
|
SMTP_DOMAIN=chatwoot.com
|
|
# if you are running docker-compose, set SMTP_ADDRESS value as "mailhog",
|
|
# else set the value as "localhost"
|
|
SMTP_ADDRESS=mailhog
|
|
SMTP_USERNAME=
|
|
SMTP_PASSWORD=
|
|
SMTP_AUTHENTICATION=
|
|
SMTP_ENABLE_STARTTLS_AUTO=
|
|
|
|
#misc
|
|
FRONTEND_URL=http://0.0.0.0:3000
|
|
ACTIVE_STORAGE_SERVICE=local
|
|
|
|
#s3
|
|
S3_BUCKET_NAME=
|
|
AWS_ACCESS_KEY_ID=
|
|
AWS_SECRET_ACCESS_KEY=
|
|
AWS_REGION=
|
|
|
|
#sentry
|
|
SENTRY_DSN=
|
|
|
|
# Credentials to access sidekiq dashboard in production
|
|
SIDEKIQ_AUTH_USERNAME=
|
|
SIDEKIQ_AUTH_PASSWORD=
|
|
|
|
#### This environment variables are only required in hosted version which has billing
|
|
ENABLE_BILLING=
|
|
|
|
## chargebee settings
|
|
CHARGEBEE_API_KEY=
|
|
CHARGEBEE_SITE=
|
|
CHARGEBEE_WEBHOOK_USERNAME=
|
|
CHARGEBEE_WEBHOOK_PASSWORD= |