Tower Configuration

env.js

This is main application's configuration file, located in public/env.js.

  • applogicUrl - applogic url, including api version path prefix, f.e. for opendax setup: js applogicUrl: 'www.app.domain.com/api/v2/applogic'
  • authUrl string - barong url, including api version path
  • peatioUrl string - peatio url, including api version path
  • finexUrl string - finex url, including api version path
  • msAlertDisplayTime string - popup alerts display time in miliseconds
  • tablePageLimit number - maximum number of rows per table
  • minutesUntilAutoLogout string - autologout time in minutes
  • finex boolean - flag if finex enabled
  • captcha object - reCAPTCHA settings
    • captchaType string - 'recaptcha', 'geetest' or 'none'
    • siteKey string - recaptha seret siteKey
  • labelSwitcher object{} - custom barong KYC user label switcher setup
    • name string - KYC step name
    • label array[{}] - array of key-value pairs ({ label_name: 'label_value' }), f.e.: js labelSwitcher: [ { name: 'email', label: [{ email: 'verified' }] }, { name: 'phone', label: [{ phone: 'verified' }] }, { name: 'document', label: [ { document: 'verified'}, { profile: 'verified' } ] } ]
  • plugins array[string] - list of additional optional plugins ('IEO')

Environment variables

  • BUILD_EXPIRE (optional) - if set, creates a 'Lite' build, which expires at given Unix timestamp miliseconds, which means you need to append 000 to your timestamp, f.e.: sh export BUILD_EXPIRE=$(date -d "+1 month" +%s000)

  • BUILD_DOMAIN (optional) - if set, locks build for specified domain.