VitePay
Search
K

.env file variables

Example .env file:
SERVER_PORT=8086 # Port where the server should run
WEB_URL=http://example.com # Url of the server (with port)
CAPTCHA=eadjfij4tfy4wuf4wuyfhg4u # reCaptcha secret (make sure to also put the public in the merchant register page!!)dotRATE_LIMIT=10 # How many requests can be made per minute
RATE_LIMIT=10 # How many requests can be made per minute
## Database config ##
DB_HOST=1.2.3.4 # database ip
DB_USER=administator
DB_PASS=12345678
# Name of the database you created #
DB_NAME=VitePay
# Passphrase to encrypt database entries (seeds) #
ENCRYPT_KEY=kduw28
## Merchant Config ##
# Length of the API key generated (recommended 12-32)#
APIKEY_LENGTH=18
## Vite Config ##
# Node URL (HTTP not WebSocket!)
NODE_URL=https://node-vite.imal.dev
  • SERVER_PORT => Port on which the webserver should run on.
  • WEB_URL => URL of the VitePay instance
  • CAPTCHA => reCaptcha Secret
  • RATE_LIMIT => Limit on how many requests can be made on specific routes.
  • DB_HOST => MariaDB Server IP
  • DB_USER => MariaDB Server username
  • DB_PASS => MariaDB User password
  • DB_NAME => Name of the VitePay database
  • ENCRYPT_KEY => Passphrase used to encrypt database entries (seeds)
  • APIKEY_LENGTH => How long should API keys be (recommended 12-32)
  • NODE_URL => Vite Node HTTP url