Environment

Your .env file configuration reference.

Your environment values should be set using the pattern VARIABLE=value on new lines each. Notice that there is no space between VARIABLE, = and value

circle-exclamation
circle-exclamation
triangle-exclamation
circle-info

If any of the variable stated here is not predefined in the environment file, you should write it in a new line at the end of the file.

Application *

APP_NAME set your application name

APP_URL set your domain, e.g. APP_URL=https://example.com

CERTBOT_EMAIL set your official email address

Database *

The database is automatically built within the container of Cryptitan and it is only accessible by Cryptitan itself, so any database credential set is inherently safe.

triangle-exclamation

DB_USERNAME set your database username (any random value will work)

DB_PASSWORD set your database password (any random value will work)

Email

MAIL_HOST set your SMTP host.

MAIL_PORT set your SMTP port.

MAIL_USERNAME set your SMTP username

MAIL_PASSWORD set your SMTP password

MAIL_ENCRYPTION set to "tls" for sending of encrypted mails

MAIL_FROM_ADDRESS set your email "from" address, it could be something like [email protected]. This usually requires domain verification on your SMTP server.

MAIL_FROM_NAME set your email "from" name. You can leave it as "${APP_NAME}" to set your APP_NAME

BitGo *

BITGO_TOKEN set your BitGo access token, (refer to its section for guide)

BITGO_ENV sets your BitGo to test or prod environment.

BITGO_ENTERPRISE sets your BitGo enterprise id.

triangle-exclamation

HCaptcha

RECAPTCHA_ENABLE set as true or false to enable or disable HCaptcha.

RECAPTCHA_SECRET set your HCaptcha secret

RECAPTCHA_SITEKEY set your HCaptcha site key

RECAPTCHA_SIZE set to normal or invisible

Pusher

circle-check

Redis

circle-check

Open Exchange Rates *

OPEN_EXCHANGE_RATES_APP_ID set your openexchangerates.orgarrow-up-right app id. (refer to its section)

Maxmind *

GEOIP_SERVICE set your maxmind service. This can be one of maxmind_api or maxmind_database

MAXMIND_USER_ID set your maxmind user id (refer to its section)

MAXMIND_LICENSE_KEY set your maxmind license key (refer to its section)

Ethereum *

ETHEREUM_WSsets the destination WebSocket node URL for Ethereum network. We recommend: Chainstack

triangle-exclamation

Binance *

BINANCE_WS (required) sets the destination WebSocket node URL for Binance network. We recommend: Chainstack

triangle-exclamation

MONGODB ATLAS *

MONGODB_URL (required) sets your MongoDB URL (refer to its section).

circle-info

The value of your MONGODB_URLshould be wrapped in quotes.

triangle-exclamation

COINCAP *

COINCAP_KEY set your coincaparrow-up-right api key.

SMS Provider

SMS_PROVIDER set your SMS provider, this could be one of vonage, twilio, africastalking, sns. Each requires its own specific environment values, refer to their section.

Vonage

VONAGE_KEY set your vonage key (refer to its section)

VONAGE_SECRET set your vonage secret (refer to its section)

VONAGE_SMS_FROM set your vonage phone number

Twilio

TWILIO_AUTH_TOKEN set your Twilio auth token

TWILIO_ACCOUNT_SID set your Twilio account SID

TWILIO_FROM set your Twilio number

TWILIO_SMS_SERVICE_SID set your Twilio sms service SID

TWILIO_ALPHA_SENDER (optional) set your Twilio sender name

TWILIO_SMS_SERVICE_SID (optional) set your sms service ID

AfricasTalking

You need to Registerarrow-up-right and then go to your sandbox app Go To SandBox Apparrow-up-right, Click on settingsarrow-up-right Within this page, you will generate your Username and key.

Remember to add your Sender ID that you will be using to send the messages.

AT_USERNAME set your AfricasTalking username

AT_KEY set your AfricasTalking secret key

AT_FROM set your AfricasTalking Sender ID

PayPal

PAYPAL_CLIENT_ENV set to either sandbox or live

PAYPAL_CLIENT_ID set your PayPal client ID

PAYPAL_CLIENT_SECRET set your PayPal client secret

circle-info

After subsequent changes to the environment file in the future. Remember to rebuild Cryptitan with:

./cryptitan recreate

Stripe

STRIPE_ENABLE set to either true or false

STRIPE_KEY set your Stripe secret key here

PayU

PAYU_ENABLE set to either true or false

PAYU_CLIENT_ENV set to either secure or sandbox for production or test environment.

PAYU_CLIENT_ID set your OAuth Client ID

PAYU_CLIENT_SECRET set your OAuth Client Secret

PAYU_CURRENCY set your PayU account currency

Paystack

PAYSTACK_ENABLE set to either true or false

PAYSTACK_CLIENT_SECRET set your Secret Key here

Mollie

MOLLIE_ENABLE set to either true or false

MOLLIE_CLIENT_KEY set your API key here

Last updated