Untitled

 avatar
unknown
plain_text
2 years ago
3.7 kB
6
Indexable
# Set this production on production, only affects logging level
export NODE_ENV=dev

export AKSO_HTTP_PORT=1111

# The path of the AKSO API, useful if behind a reverse proxy
export AKSO_HTTP_PATH='/'

# Whether to trust X-Forwarded-For from certains ips or subnets.
# Only use this if the AKSO API is behind a reverse proxy.
# The value of this variable is passed directly to ExpressJS: 
# http://expressjs.com/en/4x/api.html#trust.proxy.options.table
export AKSO_HTTP_TRUST_PROXY=NO_DEFAULT

# How many CPU threads to dedicate to the API
export AKSO_HTTP_THREADS=3

# Whether to use Express helmet for additional security
# Do not disable this on production
export AKSO_HTTP_USE_HELMET=0

# Generate some secure string using e.g. `openssl rand -hex 32`
# Change it if ever compromised.
# Use the same string across all instances if using load sharing
export AKSO_HTTP_SESSION_SECRET=NO_DEFAULT

# Whether to allow CORS, do not disable CORS on production
export AKSO_HTTP_DISABLE_CORS_CHECK=0

# Whether to disable CSRF, do not disable CSRF this on production
export AKSO_HTTP_DISABLE_CSRF_CHECK=0

# Whether to disable rate limiting
# Do not disable rate limiting on production
export AKSO_HTTP_DISABLE_RATE_LIMIT=0

# Whether to disable notifications to codeholders
# when they sign in from a fishy location
# This should probably not be disabled on production
export AKSO_DISABLE_LOGIN_NOTIFS=0

# Whether to disable login slow down
# Do not disable slow down this on production
export AKSO_HTTP_DISABLE_DISABLE_SLOW_DOWN=0

# Optionally, the URL prefix the server is behind.
# This is used for webhook registration.
# This address must be port forwarded.
# If no value is provided, AKSO determines your IP address
# and uses that with the HTTP port. This does not include the HTTP path,
# which must be appended to this value manually.
export AKSO_HTTP_OUTSIDE_ADDRESS=NO_DEFAULT

export AKSO_MYSQL_HOST=127.0.0.1
export AKSO_MYSQL_USER=root
export AKSO_MYSQL_PASSWORD=1234

# The name of the database to store geo-db data in. Can be anything.
export AKSO_MYSQL_GEODB_DATABASE=akso

# If you just blindly imported the database earlier,
# this should be set to akso
export AKSO_MYSQL_DATABASE=akso

# Put your Sendgrid API key here
# There is currently no way to use AKSO without a Sendgrid API key.
# An unlimited trial key can be obtained for free at 
# https://signup.sendgrid.com/
export AKSO_SENDGRID_API_KEY=SG.xx

# Put your Telegram bot token here
# You can leave this blank to run without Telegram support
# Read more about how to create a bot at:
# https://core.telegram.org/bots#3-how-do-i-create-a-bot
export AKSO_TELEGRAM_TOKEN=NO_DEFAULT

# Put the URL to the AKSO payment facilitator here
export AKSO_PAYMENT_FACILITATOR='https://pagi.akso.org'

# Put 32 bytes in hex here, this must be generated securely using e.g.
# `openssl rand -hex 32`
# Change it if ever compromised (updating the db as needed).
# Use the same string across all instances if using load sharing
export AKSO_TOTP_AES_KEY=f64778cabd495217d906e15d54b998bcfbc4bc7bee09447486d899047db65dea

# The absolute path to the data dir you created in the previous step
export AKSO_DATA_DIR=akso-data 

# The absolute path to the state dir you created in the previous step
export AKSO_STATE_DIR=akso-state-data

# Whether to delete Stripe webhooks upon shutdown
# This is useful for dev environments where you don't want
# failed webhook events to build up when the server is unavailable
export AKSO_STRIPE_WEBHOOKS_ARE_TEMP=1

# The Open Exchange Rates APP id, obtainable at 
# https://openexchangerates.org/. The free plan will work fine.
export AKSO_OPEN_EXCHANGE_RATES_APP_ID=NO_DEFAULT
Editor is loading...