feat: full Rust rewrite — axum, sqlx, RSA-4096 license signing, argon2, MariaDB

This commit is contained in:
NixReaper
2026-04-23 17:22:00 -05:00
commit a1b35a6ea5
21 changed files with 1375 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# 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