18 lines
544 B
Bash
18 lines
544 B
Bash
# Server
|
|||
|
|
HOST=0.0.0.0
|
||
|
|
PORT=3000
|
||
|
|
RUST_LOG=nixpanel_licensing=info,tower_http=info
|
||
|
|
|
||
|
|
# Database — MariaDB/MySQL connection string
|
||
|
|
DATABASE_URL=mysql://nixpanel_license:[email protected]:3306/nixpanel_licensing
|
||
|
|
|
||
|
|
# JWT (admin sessions) — generate: openssl rand -hex 64
|
||
|
|
JWT_SECRET=changeme_use_openssl_rand_hex_64
|
||
|
|
JWT_EXPIRES_IN_SECS=86400
|
||
|
|
|
||
|
|
# RSA License Signing Keys — generate: cargo run --bin keygen
|
||
|
|
LICENSE_PRIVATE_KEY_PATH=./keys/private.pem
|
||
|
|
LICENSE_PUBLIC_KEY_PATH=./keys/public.pem
|
||
|
|
LICENSE_TOKEN_TTL_DAYS=30
|
||
|
|
LICENSE_GRACE_PERIOD_DAYS=7
|