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.
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., https://yourapp.com (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 theserver_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 ofs3
,gcs
orpublic
.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 totrue
orfalse
will disable/enable charts & statistics on dashboard in admin panel.QUEUE_CONNECTION
= Can be either ofsync
orredis
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 benull
or one ofsightengine
,aws
orgcp
.GIFTS_ENABLED
= This could be eithertrue
orfalse
.PAYMENT_CURRENCY
= This must be a valid 3 characters, ISO currency code e.g.,INR
orUSD
.MAIL_FROM_ADDRESS
= It is the email address to be used in the From field when sending emails. It is usually same as value forMAIL_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 eithertrue
orfalse
.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 https://yourapp.com/telescope address. Can be set to eithertrue
orfalse
.SENTRY_DSN
= This can be used to optionally enable error reporting to Sentry in production.
If using SMTP:
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 to465
(for SSL) and587
(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 ofSSL
/TLS
.MAIL_DRIVER
= This must be set tosmtp
.
If using Mailgun:
MAILGUN_DOMAIN
= This is your Mailgun verified domain e.g.,mg.yourapp.com
.MAILGUN_SECRET
= This is your private API key fromMailgun > API keys
.MAIL_DRIVER
= This must be set tomailgun
.
If using S3 (AWS):
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 tonull
.FILESYSTEM_CLOUD
= This must be set tos3
.
If using Spaces (DigitalOcean):
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 tohttps://fra1.digitaloceanspaces.com
where you should replacefra1
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 tos3
.
If using B2 (Backblaze):
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 beus-west-000
.AWS_ENDPOINT
= This must behttps://s3.us-west-000.backblazeb2.com
.FILESYSTEM_CLOUD
= This must be set tos3
.
If using Cloud Storage (GCP):
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 asGOOGLE_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 togcs
.
If using MSG91:
MSG91_AUTH_KEY
= This is the MSG91 key obtained earlier from MSG91 console.OTP_SERVICE
= This must be set tomsg91
.
If using Twilio:
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 totwilio
.
If using Play Store IAB:
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 toplay_store
.
If using Instamojo:
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 toinstamojo
.
If using PayPal:
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 topaypal
.
If using Razorpay:
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 torazorpay
.
If using Stripe:
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 tostripe
.
If using Sightengine:
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 totrue
.SCREENING_SERVICE
= This must be set tosighnengine
.
If using Rekognition (AWS):
SCREENING_SERVICE
= This must be set toaws
.
If using Cloud Video Intelligence (GCP):
SCREENING_SERVICE
= This must be set togcp
.
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.
# change to project installation folder
cd /var/www/html
# generate the configuration cache
php artisan config:cache
# fix file permissions (if using LAMP or LEMP)
chown -R www-data:www-data bootstrap/cache
chmod -R 755 bootstrap/cache
Last updated