Complete reference for Chatwoot environment variables and configuration options
dotenv-rails
gem to manage the environment variables. There is a file called env.example
in the root directory of this project with all the environment variables set to empty values. You can set the correct values as per the following options. Once you set the values, you should rename the file to .env
before you start the server.
SECRET_KEY_BASE
using rake secret
command from the project root folder. If you dont have rails installed, use head /dev/urandom | tr -dc A-Za-z0-9 | head -c 63 ; echo ''
.
DATABASE_URL
or setting up independent Postgres variables.
DATABASE_URL
variable with value as Postgres connection URI to connect to the database.
The URI is of the format
DATABASE_URL
.
v2.12.0
and relies on SMTP_ADDRESS
environment variable not being set.
System mail name
.
Gmail
and Outlook
, setup SPF and DKIM records for your domain as well. This should improve your email reputation.
SMTP_USERNAME
should be set to the literal text apikey—this is not the actual API key. SendGrid uses ‘apikey’ as the standard username for its services.local
storage is used the files are stored under /storage
directory in the chatwoot root folder.
info
level logs in production. Ref rails docs for the additional log-level options.
We will also retain 1 GB of your recent logs and your last shifted log file.
You can fine-tune these settings using the following environment variables
DIRECT_UPLOADS_ENABLED
to true.
GOOGLE_OAUTH_CLIENT_ID
and GOOGLE_OAUTH_CLIENT_SECRET
environment variables in your Chatwoot installation using the values you copied from the Google API Console. Set the GOOGLE_OAUTH_CALLBACK_URL
environment variable to the callback URL you used in the Google API Console. Here’s an example of the same
LOG_ROCKET_PROJECT_ID
environment variable in your .env
file with the project ID you copied from LogRocket.