feat: web frontend; middleware; serde (WIP?)

This commit is contained in:
2025-11-30 09:41:37 +08:00
parent be35040e26
commit 531ac029af
45 changed files with 6806 additions and 82 deletions

View File

@@ -1,7 +1,26 @@
# Please replace these with your actual key and IV
LINSPIRER_KEY="0123456789abcdef"
LINSPIRER_IV="0123456789abcdef"
# Example .env file for Linspirer MITM Server
# Copy this to .env and fill in your values
# Optional: Set the listening host and port
# LINSPIRER_HOST="0.0.0.0"
# LINSPIRER_PORT="8080"
# Required: AES-128 encryption key (16 characters)
LINSPIRER_KEY=your16charkey!!
# Required: AES-128 initialization vector (16 characters)
LINSPIRER_IV=your16charivec!!
# Required: JWT secret for generating tokens
LINSPIRER_JWT_SECRET=a-very-long-secret-string
# Optional: Target server URL (default: https://cloud.linspirer.com:883)
# LINSPIRER_TARGET_URL=https://cloud.linspirer.com:883
# Optional: Server host (default: 0.0.0.0)
# LINSPIRER_HOST=0.0.0.0
# Optional: Server port (default: 8080)
# LINSPIRER_PORT=8080
# Optional: Database path (default: sqlite://./data/linspirer.db)
# LINSPIRER_DB_PATH=sqlite://./data/linspirer.db
# Optional: Rust log level
# RUST_LOG=info