Running OpenLegacy Hub Enterprise Light Jar

This guide explains how to start and access OpenLegacy Hub Enterprise Light, including configuration for running with an external PostgreSQL database.

Prerequisites

Starting the Hub

To launch OpenLegacy Hub Enterprise Light:

java -jar light-hub.jar

The server will start on port 8080. Access the GUI at: http://localhost:8080

📘

To start on a different port -set this Environment variable:

OL_HUB_SERVER_PORT={PORT NUMBER}

A local directory will be created:

  • Unix - {USER_HOME}/.ol/light-hub
  • Windows - {USER_HOME}\.ol\light-hub

This directory will contain the PostgreSQL DB information. If users need to change this location for some security or limited access issue, they should use the following command:

java -Duser.home={PATH_TO_NEW_DIR} -Dvertx.cacheDirBase={PATH_TO_NEW_DIR}\tmp\vertx-cache -jar light-hub.jar

Using an External PostgreSQL Database

By default, Hub Light uses an embedded, local in-memory PostgreSQL database. If you want to use an external PostgreSQL database (instead of the embedded one), set the following environment variables before starting the application:

VariableDescription
EXTERNAL_DBBoolean. Default is false. Set to true to use an external DB.
OL_DB_PORTPort number of the external DB server.
OL_DB_HOSTHostname or IP address of the external DB.
OL_DB_USERUsername for the database.
OL_DB_PASSWORDPassword for the database user.
OL_DB_NAMEDatabase name.
OL_DB_POOL_SIZEConnection pool size.
📘

Note: Authentication and authorization features (Keycloak IAM) are not included in Hub Light. If you require these features for production, use OpenLegacy Hub Enterprise instead.