Configuration - Server
This page provides details about available environment variables (in .env file on server) which you may add/update/remove between updates to control various features.
Last updated
This page provides details about available environment variables (in .env file on server) which you may add/update/remove between updates to control various features.
Last updated
PURCHASE_CODE
= The purchase code you must have received after purchase.
APP_KEY
= Used for signing and encryption. It is recommended to not touch it.
APP_URL
= This must the public URL to your installation e.g., (without trailing slash).
API_KEY
= This is used to secure API from direct URL access. It can be set to any randomly generated string and must match the server_api_key
set in app.
DB_DATABASE
= This should be the name of the database to use.
DB_USERNAME
= This must be the username to use when connecting to database.
DB_PASSWORD
= This is the password corresponding to above user.
FILESYSTEM_CLOUD
= Can be set to either of s3
, gcs
or public
.
CDN_URL
= You can assign this variable to make use of almost any CDN service by setting its value to the CDN service's prefix URL.
DASHBOARD_STATISTICS
= Setting this to true
or false
will disable/enable charts & statistics on dashboard in admin panel.
QUEUE_CONNECTION
= Can be either of sync
or redis
as desired.
FACEBOOK_APP_ID
= The Facebook app ID obtained earlier in this guide.
FACEBOOK_APP_SECRET
= The Facebook app secret obtained earlier in this guide.
FIREBASE_CREDENTIALS
= This must be a valid, absolute path (on server) to the credentials file i.e., xxx-admin-sdk-xxx.json file you downloaded earlier in this guide.
GOOGLE_CLIENT_ID
= This is the client ID obtained earlier in this guide.
SCREENING_SERVICE
= Can either be null
or one of sightengine
, aws
or gcp
.
GIFTS_ENABLED
= This could be either true
or false
.
PAYMENT_CURRENCY
= This must be a valid 3 characters, ISO currency code e.g., INR
or USD
.
MAIL_FROM_ADDRESS
= It is the email address to be used in the From field when sending emails. It is usually same as value for MAIL_USERNAME
.
MAIL_FROM_NAME
= It is name you want to appear in recipient inbox when sending emails e.g., Muly
.
REFERRAL_ENABLED
= This could be either true
or false
.
REFERRAL_REWARD
= This is the number of credits to add to referring user's balance upon every successful referral.
TELESCOPE_ENABLED
= This enables a useful debugging tool accessible at address. Can be set to either true
or false
.
SENTRY_DSN
= This can be used to optionally enable error reporting to Sentry in production.
MAIL_HOST
= This must be your mail server e.g., smtp.gmail.com
for using Gmail.
MAIL_PORT
= This is the port your mail server is accessible at. It's commonly set to 465
(for SSL) and 587
(for TLS).
MAIL_USERNAME
= The username used for authenticating with mail server, usually your email address.
MAIL_PASSWORD
= The password corresponding to above username.
MAIL_ENCRYPTION
= Must be either none or any of SSL
/ TLS
.
MAIL_DRIVER
= This must be set to smtp
.
MAILGUN_DOMAIN
= This is your Mailgun verified domain e.g., mg.yourapp.com
.
MAILGUN_SECRET
= This is your private API key from Mailgun > API keys
.
MAIL_DRIVER
= This must be set to mailgun
.
AWS_ACCESS_KEY_ID
= This is the access key ID from AWS console.
AWS_SECRET_ACCESS_KEY
= This is the secret access key corresponding to above key ID.
AWS_BUCKET
= The name of the S3 bucket where to keep data.
AWS_DEFAULT_REGION
= This is the region where your bucket is located e.g., aap-south-1
for Mumbai region.
AWS_ENDPOINT
= This must be set to null
.
FILESYSTEM_CLOUD
= This must be set to s3
.
AWS_ACCESS_KEY_ID
= This is the access key ID from DigitalOcean account.
AWS_SECRET_ACCESS_KEY
= This is the secret access key corresponding to above key ID.
AWS_DEFAULT_REGION
= This has to be the region code where you created your spaces e.g., sgp1
for Singapore.
AWS_ENDPOINT
= Should be set to similar to https://fra1.digitaloceanspaces.com
where you should replace fra1
with your spaces region code. If the variable does not exist in .env
file, you can just add it.
FILESYSTEM_CLOUD
= This must be set to s3
.
AWS_ACCESS_KEY_ID
= This is the key ID from app key created in Backblaze.
AWS_SECRET_ACCESS_KEY
= This is the secret key corresponding to above key ID.
AWS_DEFAULT_REGION
= This must be us-west-000
.
AWS_ENDPOINT
= This must be https://s3.us-west-000.backblazeb2.com
.
FILESYSTEM_CLOUD
= This must be set to s3
.
GOOGLE_APPLICATION_CREDENTIALS
= This must be a valid, absolute path to JSON key of the service account with Storage Admin role you downloaded earlier in this guide.
GOOGLE_CLOUD_KEY_FILE
= This must be same value as GOOGLE_APPLICATION_CREDENTIALS
above.
GOOGLE_CLOUD_PROJECT_ID
= This is project ID you chose when creating your Google Cloud project e.g., xxx-xxx-012345.
GOOGLE_CLOUD_STORAGE_BUCKET
= The name of the Google Cloud Storage bucket in which data has to be stored.
FILESYSTEM_CLOUD
= This must be set to gcs
.
MSG91_AUTH_KEY
= This is the MSG91 key obtained earlier from MSG91 console.
OTP_SERVICE
= This must be set to msg91
.
TWILIO_SID
= This is the account SID from Twilio obtained earlier in this guide.
TWILIO_AUTH_TOKEN
= This is the auth token from Twilio obtained earlier in this guide.
TWILIO_VERIFY_SID
= This is the verify service SID from Twilio obtained earlier in this guide.
OTP_SERVICE
= This must be set to twilio
.
GOOGLE_PLAY_CREDENTIALS
= This must be valid, absolute path on server to JSON key of the service account key linked to your Play Console account you downloaded earlier in this guide.
GOOGLE_PLAY_PACKAGE_NAME
= Your app's package name e.g., com.yourapp.android
.
PAYMENT_GATEWAY
= This must be set to play_store
.
INSTAMOJO_CLIENT_ID
= This is the client ID obtained earlier from your Instamojo account.
INSTAMOJO_CLIENT_SECRET
= This is the client secret obtained earlier from your Instamojo account.
PAYMENT_GATEWAY
= This must be set to instamojo
.
PAYPAL_CLIENT_ID
= This is the client ID obtained earlier from your PayPal app.
PAYPAL_CLIENT_SECRET
= This is the client secret obtained earlier from your PayPal app.
PAYMENT_GATEWAY
= This must be set to paypal
.
RAZORPAY_KEY_ID
= This is the live key ID obtained earlier from your Razorpay account.
RAZORPAY_KEY_SECRET
= This is the secret key obtained earlier from your Razorpay account.
PAYMENT_GATEWAY
= This must be set to razorpay
.
STRIPE_PUBLISHABLE_KEY
= This is the publishable key obtained earlier from your Stripe account.
STRIPE_SECRET_KEY
= This is the secret key obtained earlier from your Stripe account.
PAYMENT_GATEWAY
= This must be set to stripe
.
SIGHTENGINE_API_USER
= This is your Sightengine API user ID.
SIGHTENGINE_API_SECRET
= This is the secret corresponding to above API user.
SIGHTENGINE_CONTINUOUS
= If you would like to screen videos videos longer than a minute, you must set this to true
.
SCREENING_SERVICE
= This must be set to sighnengine
.
SCREENING_SERVICE
= This must be set to aws
.
SCREENING_SERVICE
= This must be set to gcp
.
Please be noted that whenever you change any of the variables in .env
file, you must also regenerate app's configuration cache by running below commands when logged in via SSH.