feat: add license loading at startup from env var or file

- LicenseBeanConfig wires LicenseGate bean with startup validation
- Supports token from CAMELEER_LICENSE_TOKEN env var or CAMELEER_LICENSE_FILE path
- Falls back to open mode when no license or no public key configured
- Add license config properties to application.yml
This commit is contained in:
hsiegeln
2026-04-07 23:11:02 +02:00
parent d734597ec3
commit b969075007
2 changed files with 73 additions and 0 deletions

View File

@@ -41,6 +41,11 @@ cameleer:
debounce-ms: ${CAMELEER_INDEXER_DEBOUNCE_MS:2000}
queue-size: ${CAMELEER_INDEXER_QUEUE_SIZE:10000}
license:
token: ${CAMELEER_LICENSE_TOKEN:}
file: ${CAMELEER_LICENSE_FILE:}
public-key: ${CAMELEER_LICENSE_PUBLIC_KEY:}
security:
access-token-expiry-ms: 3600000
refresh-token-expiry-ms: 604800000