Configuration

The Lisk Service configuration reference comprises a complete list of all available configuration options, including examples and descriptions.

Common settings

The following options below are available for all micro-services provided by Lisk Service.

## Service broker

# Must be identical for all micro-serivces
# Ensures that all micro-services are able to connect with it
SERVICE_BROKER=redis://localhost:6379/0

## Lisk Service log config

SERVICE_LOG_STDOUT=true   # Asynchronous console output (non-blocking, preferred)
SERVICE_LOG_CONSOLE=false # console.log() output, only for debug
SERVICE_LOG_FILE=false    # file path ex. ./logs/service.log
SERVICE_LOG_GELF=false    # GELF output for remote logging ex. Graylog localhost:12201/udp
SERVICE_LOG_LEVEL=debug   # Default log level

Gateway settings

# Port that provides the possibility to connect with Lisk Service
# For HTTP and WebSocket
PORT=9901

Lisk settings

LISK_CORE_HTTP=https://mainnet.lisk.io # Lisk Core HTTP URL
LISK_CORE_WS=wss://mainnet.lisk.io     # Lisk Core WebSocket URL
LISK_CORE_CLIENT_TIMEOUT=30            # Lisk Core client timeout (in seconds)

## Lisk Service Core

# Local Redis cache for Lisk micro-service
# Note: SERVICE_BROKER uses a different DB
SERVICE_CORE_REDIS=redis://localhost:6379/1

# Postgres persistent database for Lisk micro-service
SERVICE_CORE_POSTGRES=postgres://lisk:password@postgres_core:5432/lisk
ENV_LISK_DB_DATABASE=lisk     # Must match the path above
ENV_LISK_DB_USER=lisk         # Must match the path above
ENV_LISK_DB_PASSWORD=password # Must match the path above

# Lisk static assets, ie. known account lists
LISK_STATIC=https://static-data.lisk.io

# Lisk Service geolocation backend
GEOIP_JSON=https://geoip.lisk.io/json