7ca192615d
For the outgoing emails which has dependency on the incoming part as well like the conversation continuity part, some of the config variables used were entirely based on the account attributes. But this is not true in case of self hosted situations where you have multiple accounts and have a common config for incoming emails. So moved out some of the attributes entirely dependednt on the account to ENV with a fallback to the Global config. Also, with this changes the name of the agent will be shown in the email clinet with in the conversation rather than just the support email address. This has a huge UX impact on the cutomer. Modified all the necessary unit tests to reflect these changes. Updated the .env.example file for the new ENV variable.
114 lines
3.1 KiB
Text
114 lines
3.1 KiB
Text
# Used to verify the integrity of signed cookies. so ensure a secure value is set
|
|
SECRET_KEY_BASE=replace_with_lengthy_secure_hex
|
|
|
|
# Replace with the URL you are planning to use for your app
|
|
FRONTEND_URL=http://0.0.0.0:3000
|
|
|
|
# Force all access to the app over SSL, default is set to false
|
|
FORCE_SSL=false
|
|
|
|
# This lets you control new sign ups on your chatwoot installation
|
|
# true : default option, allows sign ups
|
|
# false : disables all the end points related to sign ups
|
|
# api_only: disables the UI for signup, but you can create sign ups via the account apis
|
|
ENABLE_ACCOUNT_SIGNUP=true
|
|
|
|
# Redis config
|
|
REDIS_URL=redis://redis:6379
|
|
# If you are using docker-compose, set this variable's value to be any string,
|
|
# which will be the password for the redis service running inside the docker-compose
|
|
# to make it secure
|
|
REDIS_PASSWORD=
|
|
|
|
# Postgres Database config variables
|
|
POSTGRES_HOST=postgres
|
|
POSTGRES_USERNAME=postgres
|
|
POSTGRES_PASSWORD=
|
|
RAILS_ENV=development
|
|
RAILS_MAX_THREADS=5
|
|
|
|
# Mail outgoing
|
|
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=
|
|
|
|
# Mail Incoming
|
|
# This is the domain set for the reply emails when conversation continuity is enabled
|
|
MAILER_INBOUND_EMAIL_DOMAIN=
|
|
# Set this to appropriate ingress channel with regards to incoming emails
|
|
# Possible values are :
|
|
# :relay for Exim, Postfix, Qmail
|
|
# :mailgun for Mailgun
|
|
# :mandrill for Mandrill
|
|
# :postmark for Postmark
|
|
# :sendgrid for Sendgrid
|
|
RAILS_INBOUND_EMAIL_SERVICE=
|
|
# Use one of the following based on the email ingress service
|
|
# Ref: https://edgeguides.rubyonrails.org/action_mailbox_basics.html
|
|
RAILS_INBOUND_EMAIL_PASSWORD=
|
|
MAILGUN_INGRESS_SIGNING_KEY=
|
|
MANDRILL_INGRESS_API_KEY=
|
|
|
|
# Storage
|
|
ACTIVE_STORAGE_SERVICE=local
|
|
|
|
# Amazon S3
|
|
# documentation: https://www.chatwoot.com/docs/configuring-s3-bucket-as-cloud-storage
|
|
S3_BUCKET_NAME=
|
|
AWS_ACCESS_KEY_ID=
|
|
AWS_SECRET_ACCESS_KEY=
|
|
AWS_REGION=
|
|
|
|
# Sentry
|
|
SENTRY_DSN=
|
|
|
|
# Log settings
|
|
# Disable if you want to write logs to a file
|
|
RAILS_LOG_TO_STDOUT=true
|
|
LOG_LEVEL=info
|
|
LOG_SIZE=500
|
|
|
|
### This environment variables are only required if you are setting up social media channels
|
|
|
|
# Facebook
|
|
# documentation: https://www.chatwoot.com/docs/facebook-setup
|
|
FB_VERIFY_TOKEN=
|
|
FB_APP_SECRET=
|
|
FB_APP_ID=
|
|
|
|
# Twitter
|
|
# documentation: https://www.chatwoot.com/docs/twitter-app-setup
|
|
TWITTER_APP_ID=
|
|
TWITTER_CONSUMER_KEY=
|
|
TWITTER_CONSUMER_SECRET=
|
|
TWITTER_ENVIRONMENT=
|
|
|
|
#slack integration
|
|
SLACK_CLIENT_ID=
|
|
SLACK_CLIENT_SECRET=
|
|
|
|
### Change this env variable only if you are using a custom build mobile app
|
|
## Mobile app env variables
|
|
IOS_APP_ID=6C953F3RX2.com.chatwoot.app
|
|
|
|
## Push Notification
|
|
## generate a new key value here : https://d3v.one/vapid-key-generator/
|
|
# VAPID_PUBLIC_KEY=
|
|
# VAPID_PRIVATE_KEY=
|
|
#
|
|
# for mobile apps
|
|
# FCM_SERVER_KEY=
|
|
|
|
## Bot Customizations
|
|
USE_INBOX_AVATAR_FOR_BOT=true
|
|
|
|
## Development Only Config
|
|
# if you want to use letter_opener for local emails
|
|
# LETTER_OPENER=true
|