Files
blackroad-operating-system/backend/.env.example
2025-11-16 01:47:22 -06:00

56 lines
1.5 KiB
Plaintext

# Database
DATABASE_URL=postgresql://blackroad:password@localhost:5432/blackroad_db
DATABASE_ASYNC_URL=postgresql+asyncpg://blackroad:password@localhost:5432/blackroad_db
# Redis
REDIS_URL=redis://localhost:6379/0
# JWT
SECRET_KEY=your-secret-key-change-this-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
WALLET_MASTER_KEY=replace-with-strong-unique-master-key
# AWS S3 (for file storage)
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_REGION=us-east-1
S3_BUCKET_NAME=blackroad-files
# Email (SMTP)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-password
EMAIL_FROM=noreply@blackroad.com
# Application
APP_NAME=BlackRoad Operating System
APP_VERSION=1.0.0
DEBUG=True
ENVIRONMENT=development
# CORS (add your production domains here)
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8000,https://blackboxprogramming.github.io,https://www.blackroad.systems
# API Keys
OPENAI_API_KEY=your-openai-key-for-ai-chat
# Blockchain & Mining
BLOCKCHAIN_DIFFICULTY=4
MINING_REWARD=50
ROADCHAIN_RPC_URL=http://localhost:8545
ROADCOIN_POOL_URL=pool.roadcoin.network:3333
ROADCOIN_WALLET_ADDRESS=auto-generated-per-user
# Device Management (IoT/Raspberry Pi)
MQTT_BROKER_URL=mqtt://localhost:1883
MQTT_USERNAME=blackroad
MQTT_PASSWORD=your-mqtt-password
DEVICE_HEARTBEAT_TIMEOUT_SECONDS=300
# Deployment
# Railway will automatically set PORT - use this for local development
PORT=8000