Offline License
To enable offline licensing for your server, follow the steps outlined below. This documentation explains how to configure and manage offline licenses, including preflight mode and generating license
This functionality is available from application version 1.19.3
Overview
Offline licensing allows your server to operate without an internet connection. To configure the offline license, you need to set specific environment variables and follow a predefined process to generate and apply the license file.
Configuration
Step 1: Set Required Environment Variables
Enable Offline License Mode
Set the
OFFLINE_LICENSE
environment variable totrue
.
Provide Your License Key
Set the
LICENSE_KEY
environment variable with the license key provided by DecisionRules.
Optional: License File
If you already have your Licensse file, set it to the env variable.
Preflight Mode and License Request
If the application starts in preflight mode, it means the LICENSE_FILE
environment variable is either missing or points to an invalid license file. The specific reason for preflight mode can be found in the server application logs.
Step 2: Generate a License Request File
Open client application and there should be License Request Page.
Download the License Request File. This file will contain the necessary information for generating the offline license file.
Step 3: Send License Request File
Send the downloaded license request file to support@decisionrules.io. Ensure to include any additional context or requirements in the email.
Applying the Generated License
After receiving your license request, the DecisionRules team will generate the license file and send it back to you.
Step 4: Apply the License File
There are 2 options:
a) Set License file as string into environment variable.
Set the
LICENSE_FILE
environment variable
Restart your server to apply the license.
b) Set License file to your server and provide path
Save the provided license file to an accessible location on your server.
Set the
LICENSE_FILE_PATH
environment variable to point to the license file's location.Restart your server to apply the license.
Example Environment Variable Configuration
Below is an example .env
file configuration for enabling offline licensing:
Troubleshooting
Preflight Mode Activated: If the server starts in preflight mode, check the server application logs for detailed reasons, such as:
Missing
LICENSE_FILE
environment variable.Invalid or corrupted license file.
License key mismatch.
Invalid License File: If the license file is rejected, contact support@decisionrules.io for assistance.
By following these steps, you can successfully configure and manage offline licensing for your server. For additional support, contact our team at support@decisionrules.io.
Last updated