chore: update .env.master.example with new deployment scripts and treasury manager parameters; enhance AGENTS.md with GRU reference primacy details
- Added new deployment script references for Aave quote-push and treasury manager in .env.master.example. - Updated AGENTS.md to include information on GRU reference primacy versus public PMM mesh execution model. - Minor updates to various documentation files to reflect changes in policy and operational guidelines. Made-with: Cursor
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Quick reference guide for JWT authentication
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
source "${PROJECT_ROOT}/scripts/lib/load-project-env.sh"
|
||||
JWT_VMID="${JWT_VMID:-2101}"
|
||||
JWT_HOST="$(get_host_for_vmid "$JWT_VMID")"
|
||||
|
||||
cat <<'REF'
|
||||
╔════════════════════════════════════════════════════════════════╗
|
||||
@@ -20,10 +25,10 @@ Public (No Auth):
|
||||
|
||||
🔑 GENERATE TOKEN
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
./scripts/generate-jwt-token.sh [username] [expiry_days]
|
||||
./scripts/generate-jwt-token-for-container.sh 2101 [username] [expiry_days]
|
||||
|
||||
Example:
|
||||
./scripts/generate-jwt-token.sh my-app 30
|
||||
./scripts/generate-jwt-token-for-container.sh 2101 my-app 30
|
||||
|
||||
🧪 TEST ENDPOINT
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
@@ -34,36 +39,35 @@ curl -k \
|
||||
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \
|
||||
https://rpc-http-prv.d-bis.org
|
||||
|
||||
REF
|
||||
|
||||
cat <<EOF
|
||||
|
||||
🔍 CHECK STATUS
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# Load IP configuration
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
source "${PROJECT_ROOT}/config/ip-addresses.conf" 2>/dev/null || true
|
||||
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- systemctl status nginx jwt-validator"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- systemctl status nginx jwt-validator"
|
||||
|
||||
📊 VIEW LOGS
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# Access logs
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- tail -f /var/log/nginx/rpc-http-prv-access.log"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- tail -f /var/log/nginx/rpc-http-prv-access.log"
|
||||
|
||||
# Error logs
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- tail -f /var/log/nginx/rpc-http-prv-error.log"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- tail -f /var/log/nginx/rpc-http-prv-error.log"
|
||||
|
||||
# JWT validator logs
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- journalctl -u jwt-validator -f"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- journalctl -u jwt-validator -f"
|
||||
|
||||
🔧 TROUBLESHOOTING
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# Restart services
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- systemctl restart nginx jwt-validator"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- systemctl restart nginx jwt-validator"
|
||||
|
||||
# Test nginx config
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- nginx -t"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- nginx -t"
|
||||
|
||||
# Check JWT secret
|
||||
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 2501 -- cat /etc/nginx/jwt_secret"
|
||||
ssh root@${JWT_HOST} "pct exec ${JWT_VMID} -- cat /etc/nginx/jwt_secret"
|
||||
|
||||
📚 DOCUMENTATION
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
@@ -71,4 +75,4 @@ docs/04-configuration/RPC_JWT_AUTHENTICATION.md
|
||||
docs/04-configuration/RPC_JWT_SETUP_COMPLETE.md
|
||||
docs/04-configuration/RPC_DNS_CONFIGURATION.md
|
||||
|
||||
REF
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user