Skip to content

v1.1.0 - 2017/10/06 - Authentication token mandatory

Compare
Choose a tag to compare
@ilayaraja89-zz ilayaraja89-zz released this 06 Oct 07:15
· 8 commits to master since this release

Features:

  • Allow clients to override default timestamp while creating transactions.

Improvements:

  • Ensure static authentication token is set in the environment while server starts.

Bug Fixes:

[NIL]

Deployment Guide:

  • Set the following environmental variables:

    • Port in which the Ledger server should run
      export PORT=7000
    • Database URL of the Ledger
      export DATABASE_URL="postgres://USERNAME:PASSWORD@HOST:PORT/DB_NAME"
    • Set the path of migration files
      export MIGRATION_FILES_PATH="file:///go/src/github.com/RealImage/QLedger/migrations/postgres"
    • Set the host prefix, if path based routing is needed for sharing the load balancer
      export HOST_PREFIX="/qledger/api"
    • Set the authentication token to a random string
      export LEDGER_AUTH_TOKEN=<RANDOM STRING>
  • Build and run the docker using Dockerfile.