Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Git
.git
.gitignore
.gitattributes

# Documentation
*.md
docs/
LICENSE

# Environment files
.env
.env.*
!.env.example
!.env.production.example

# Dependencies
node_modules/
lib/
cache/

# Build artifacts
out/
dist/
build/
target/
broadcast/

# Logs
*.log
logs/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# IDE
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# Testing
coverage/
.nyc_output/
test/
*.test.js
*.spec.js

# Temporary files
tmp/
temp/
*.tmp

# Docker
docker-compose*.yml
Dockerfile*
.dockerignore

# Scripts (keep only necessary ones)
scripts/

# Frontend specific
frontend/node_modules/
frontend/dist/
frontend/.vite/
frontend/coverage/

# Foundry specific
cache/
out/
broadcast/

112 changes: 112 additions & 0 deletions .env.production.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# =============================================================================
# EthAura Production Environment Configuration
# =============================================================================
# Copy this file to .env.production and fill in your values
# NEVER commit .env.production to version control!

# =============================================================================
# NETWORK CONFIGURATION
# =============================================================================
# Network to use: mainnet, sepolia, holesky
NETWORK=mainnet

# Server IP address (for Nimbus P2P)
# Use 'auto' for automatic detection or specify your server's public IP
SERVER_IP=auto

# =============================================================================
# ETHEREUM RPC CONFIGURATION
# =============================================================================
# Mainnet Execution RPC (Alchemy, Infura, or other provider)
# Get API key from: https://www.alchemy.com/ or https://infura.io/
MAINNET_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY

# Sepolia RPC (for testing)
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY

# =============================================================================
# HELIOS CONFIGURATION
# =============================================================================
# Helios checkpoint (weak subjectivity checkpoint)
# Get latest from: https://beaconcha.in
# Update this every 1-2 weeks for security
HELIOS_CHECKPOINT=0x85e6151a246e8fdba36db27a0c7678a575346272fe978c9281e13a8b26cdfa68

# =============================================================================
# FRONTEND CONFIGURATION
# =============================================================================
# Web3Auth Client ID
# Get from: https://dashboard.web3auth.io/
VITE_WEB3AUTH_CLIENT_ID=your_web3auth_client_id_here

# Chain ID (1 for mainnet, 11155111 for Sepolia)
VITE_CHAIN_ID=1

# RPC URL for frontend (use Helios local endpoint)
VITE_RPC_URL=http://helios:8545

# Contract Addresses (update after deployment)
VITE_FACTORY_ADDRESS=0x...
VITE_ENTRYPOINT_ADDRESS=0x0000000071727De22E5E9d8BAf0edAc6f37da032

# =============================================================================
# DEPLOYMENT CONFIGURATION (for contract deployment)
# =============================================================================
# Private key for deploying contracts (KEEP SECURE!)
PRIVATE_KEY=0x...

# Etherscan API key for contract verification
ETHERSCAN_API_KEY=YOUR_ETHERSCAN_API_KEY

# EntryPoint v0.7 address
ENTRYPOINT_ADDRESS=0x0000000071727De22E5E9d8BAf0edAc6f37da032

# =============================================================================
# MONITORING CONFIGURATION
# =============================================================================
# Grafana admin credentials
GRAFANA_USER=admin
GRAFANA_PASSWORD=change_this_secure_password

# =============================================================================
# APPLICATION PORTS
# =============================================================================
# Frontend HTTP port
FRONTEND_PORT=80

# Frontend HTTPS port (configure SSL certificates first)
FRONTEND_SSL_PORT=443

# Prometheus port (localhost only)
PROMETHEUS_PORT=9090

# Grafana port (localhost only)
GRAFANA_PORT=3001

# =============================================================================
# RESOURCE LIMITS
# =============================================================================
# Nimbus memory limit (in GB)
NIMBUS_MEMORY_LIMIT=6

# Helios memory limit (in GB)
HELIOS_MEMORY_LIMIT=2

# =============================================================================
# BACKUP CONFIGURATION
# =============================================================================
# Backup directory for volumes
BACKUP_DIR=/var/backups/ethaura

# Backup retention (in days)
BACKUP_RETENTION_DAYS=30

# =============================================================================
# LOGGING
# =============================================================================
# Log level: DEBUG, INFO, WARN, ERROR
LOG_LEVEL=INFO

# Log retention (in days)
LOG_RETENTION_DAYS=30

11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ out/

# Dotenv file
.env
.env.production
.env.local

# Node modules
node_modules/
Expand All @@ -27,3 +29,12 @@ frontend/.vite/
.DS_Store
Thumbs.db

# Docker
logs/
backups/
docker/nginx/ssl/*.pem
docker/nginx/ssl/*.key

# Helios
.helios/

Loading