qcrypt-rng / .env.example
rocRevyAreGoals15's picture
fixing ui
86deab0
Raw
History Blame Contribute Delete
3.68 kB
# QCrypt RNG Environment Variables
APP_NAME=QCrypt RNG
APP_VERSION=2.0.0
DEBUG=True
# Quantum Backend
QUANTUM_BACKEND=qrisp_simulator
DEFAULT_QUBITS=8
MAX_QUBITS=16
ENTROPY_POOL_SIZE=1000
MIN_ENTROPY_THRESHOLD=0.95
# Security
SECRET_KEY=your-secret-key-here-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# API Settings
API_HOST=0.0.0.0
API_PORT=8000
API_PREFIX=/api/v2
# Rate Limiting
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_PERIOD=60
# Logging
LOG_LEVEL=INFO
LOG_FILE=logs/qcrypt.log
# Database (for future use)
DATABASE_URL=postgresql://user:password@localhost:5432/qcrypt_db
REDIS_URL=redis://localhost:6379/0
# =============================================================================
# Testnet Oracle Configuration (Phase 2 Task 5)
# Fill these in after deploying contracts to testnets
# =============================================================================
# Oracle Contract Addresses (deployed)
# ORACLE_CONTRACT_SEPOLIA=0x...
# ORACLE_CONTRACT_POLYGON_AMOY=0x...
# ORACLE_CONTRACT_BSC_TESTNET=0x...
# ORACLE_CONTRACT_AVALANCHE_FUJI=0x...
# ORACLE_CONTRACT_FANTOM_TESTNET=0x...
# Testnet RPC URLs (defaults are configured, override if needed)
TESTNET_RPC_SEPOLIA=https://rpc.sepolia.org
TESTNET_RPC_POLYGON_AMOY=https://rpc.amoy.polygon.technology
TESTNET_RPC_BSC_TESTNET=https://data-seed-prebsc-1-s1.binance.org:8545
TESTNET_RPC_AVALANCHE_FUJI=https://api.avax-test.network/ext/bc/C/rpc
TESTNET_RPC_FANTOM_TESTNET=https://rpc.testnet.fantom.network
# Testnet Chain IDs (defaults are configured)
TESTNET_CHAIN_ID_SEPOLIA=11155111
TESTNET_CHAIN_ID_POLYGON_AMOY=80002
TESTNET_CHAIN_ID_BSC_TESTNET=97
TESTNET_CHAIN_ID_AVALANCHE_FUJI=43113
TESTNET_CHAIN_ID_FANTOM_TESTNET=4002
# Testnet Explorer URLs (defaults are configured)
TESTNET_EXPLORER_SEPOLIA=https://sepolia.etherscan.io
TESTNET_EXPLORER_POLYGON_AMOY=https://amoy.polygonscan.com
TESTNET_EXPLORER_BSC_TESTNET=https://testnet.bscscan.com
TESTNET_EXPLORER_AVALANCHE_FUJI=https://testnet.snowtrace.io
TESTNET_EXPLORER_FANTOM_TESTNET=https://testnet.ftmscan.com
# =============================================================================
# Hardware Quantum Backend (optional)
# =============================================================================
# IBM Quantum
# IBM_QUANTUM_TOKEN=your_ibm_quantum_token
# IQM Quantum
# IQM_SERVER_URL=https://your-iqm-server.com
# Rigetti Quantum
# RIGETTI_API_KEY=your_rigetti_api_key
# =============================================================================
# API Key Tiers
# =============================================================================
# Tier limits per window (default window = RATE_LIMIT_PERIOD seconds)
FREE_TIER_MAX_BYTES=256
FREE_TIER_MAX_REQUESTS=10
PRO_TIER_MAX_BYTES=1024
PRO_TIER_MAX_REQUESTS=100
ENTERPRISE_TIER_MAX_BYTES=10240
ENTERPRISE_TIER_MAX_REQUESTS=1000
# Require an API key for every request (false allows anonymous/free)
REQUIRE_API_KEY=false
# Comma-separated allow-list (optional; if unset, any key >= 10 chars is accepted)
# VALID_API_KEYS=key-aaaa1111bbbb2222,key-cccc3333dddd4444
# =============================================================================
# Stripe Billing (optional — leave commented for local dev)
# =============================================================================
# STRIPE_SECRET_KEY=sk_test_...
# STRIPE_WEBHOOK_SECRET=whsec_...
# STRIPE_PRICE_ID_PRO=price_...
# STRIPE_PRICE_ID_ENTERPRISE=price_...
# =============================================================================
# Monitoring (optional)
# =============================================================================
# PROMETHEUS_PORT=9090
# ENABLE_DETAILED_LOGGING=False