Configuration

HaasOnline TradeServer Enterprise does not have an installation wizard and it does not allow for editing system essential settings within its interface. Instead, the whole configuration is now done inside the "settings.env" file. You now need to open this file and configure nearly everything inside it. The file itself is pretty well documented which makes the configuration (and troubleshooting) a lot easier.

The following settings are managed within the settings.env file;

  • License key setup

  • Login credentials (in case if a reset is needed)

  • Server API hosting address and port

  • Server socket hosting address and port

  • Data storage locations

This is how the "settings.env" file looks like and the file is provided in the installation package.

# --------------------------------------
# License key setup
# --------------------------------------
EMAIL = 
LICENSEKEY = 


# --------------------------------------
# Login credentials setup
# --------------------------------------
USERNAME = 
PASSWORD =
2FA_SECRET =

# --------------------------------------
# Local API
#
# To enable the local API, enter your password secret key here
# --------------------------------------
LOCALAPI_SECRET =

# --------------------------------------
# Startup settings, set to "false" when starting as a service
# --------------------------------------
OPEN_INTERFACE = true


# --------------------------------------
# REST (API) Server Settings
# --------------------------------------
SERVER_PROTOCOL = http
SERVER_HOST = 127.0.0.1
SERVER_PORT = 8090

EXTERNAL_SERVER_PROTOCOL = http
EXTERNAL_SERVER_HOST = 127.0.0.1
EXTERNAL_SERVER_PORT = 8090

# --------------------------------------
# Socket Server Settings
# --------------------------------------
SOCKET_HOST = 127.0.0.1
SOCKET_PORT = 8092

EXTERNAL_SOCKET_HOST = 127.0.0.1
EXTERNAL_SOCKET_PORT = 8092

Last updated