License

Administration → System → Settings → License is the operational license panel. Open it with manage_license; the built-in Administrator role has it.

Activate the installation

  1. Enter the license key in License key
  2. Click Save key
  3. Click Activate

Activation registers the current domain with the license server. A pending license becomes active. If the maximum number of installations is reached, the oldest registration is replaced.

Deregister domain removes this installation from the license, for example before moving to another server. The place becomes free for another installation. The license stops being valid for this installation until it is registered again.

Check now asks the license server for the current state. The application also checks automatically every 30 minutes and caches the result in the settings table. When the server is unreachable, the last known state stays in force and the next check follows after five minutes.

What the panel shows

  • Product and license key
  • Customer and company
  • Expiry date and days left
  • Registered installations (used of max)
  • Domain of this installation
  • Last check and the last server error, if any

Configuration

The license connection is configured in .env.<target>:

LICENSE_SERVER=https://lewelic.lewe.com
LICENSE_ITEM=LeweAuto
LICENSE_SECRET=your-license-secret
LICENSE_LOCK=0

install.php writes LICENSE_SERVER and LICENSE_ITEM. LICENSE_SECRET is part of your license information. The same key can be pasted into the panel; the panel stores it in the settings table.

If the panel says the connection is not set up, LICENSE_SERVER or LICENSE_SECRET is missing.

States and behavior

State Behavior
Active Full functionality
Trial 14 days full functionality with an administrator banner
Pending 14-day grace period, then limited mode unless activated
Expired 14-day grace period, then limited mode
Unregistered 14-day grace period, then limited mode
Invalid 14-day grace period, then limited mode
Blocked Limited mode immediately, no grace period
Unavailable Last known state stays in force
Trial over Limited mode

Grace periods give administrators time to react. A blocked license is deliberate and skips the grace period.

In limited mode the following are switched off:

  • Viewing the audit log (entries are still written)
  • Self-registration (the setting is kept)
  • New two-factor setups (existing factors keep working)
  • New uploads (existing files are still served)

New records are limited to 1 vehicle, 10 fueling and charging events combined, 10 service events, 10 fixed costs, 5 entries per base-data table and 20 users without the Administrator role. Existing records can still be edited and deleted.

Locked installations

Set LICENSE_LOCK=1 in the .env file to lock instead of limiting. After an expired, blocked or trial-over state, only administrators can log in; everybody else sees the maintenance page. This is the strict option for installations that must stop without a license.

Do not change LICENSE_SECRET or the domain without re-activating. The license is bound to the domain, so a test under localhost or an alias is checked against that host and may show a different state.

Last updated: