Complete markdown files cleanup and organization
- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
This commit is contained in:
67
scripts/jwt-quick-reference.sh
Executable file
67
scripts/jwt-quick-reference.sh
Executable file
@@ -0,0 +1,67 @@
|
||||
#!/usr/bin/env bash
|
||||
# Quick reference guide for JWT authentication
|
||||
|
||||
cat <<'REF'
|
||||
╔════════════════════════════════════════════════════════════════╗
|
||||
║ JWT Authentication - Quick Reference ║
|
||||
╚════════════════════════════════════════════════════════════════╝
|
||||
|
||||
📋 ENDPOINTS
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
Permissioned (JWT Required):
|
||||
• https://rpc-http-prv.d-bis.org
|
||||
• wss://rpc-ws-prv.d-bis.org
|
||||
|
||||
Public (No Auth):
|
||||
• https://rpc-http-pub.d-bis.org
|
||||
• wss://rpc-ws-pub.d-bis.org
|
||||
|
||||
🔑 GENERATE TOKEN
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
./scripts/generate-jwt-token.sh [username] [expiry_days]
|
||||
|
||||
Example:
|
||||
./scripts/generate-jwt-token.sh my-app 30
|
||||
|
||||
🧪 TEST ENDPOINT
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
TOKEN="your-token-here"
|
||||
curl -k \
|
||||
-H "Authorization: Bearer $TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \
|
||||
https://rpc-http-prv.d-bis.org
|
||||
|
||||
🔍 CHECK STATUS
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- systemctl status nginx jwt-validator"
|
||||
|
||||
📊 VIEW LOGS
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# Access logs
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- tail -f /var/log/nginx/rpc-http-prv-access.log"
|
||||
|
||||
# Error logs
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- tail -f /var/log/nginx/rpc-http-prv-error.log"
|
||||
|
||||
# JWT validator logs
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- journalctl -u jwt-validator -f"
|
||||
|
||||
🔧 TROUBLESHOOTING
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# Restart services
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- systemctl restart nginx jwt-validator"
|
||||
|
||||
# Test nginx config
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- nginx -t"
|
||||
|
||||
# Check JWT secret
|
||||
ssh root@192.168.11.10 "pct exec 2501 -- cat /etc/nginx/jwt_secret"
|
||||
|
||||
📚 DOCUMENTATION
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
docs/04-configuration/RPC_JWT_AUTHENTICATION.md
|
||||
docs/04-configuration/RPC_JWT_SETUP_COMPLETE.md
|
||||
docs/04-configuration/RPC_DNS_CONFIGURATION.md
|
||||
|
||||
REF
|
||||
Reference in New Issue
Block a user