You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5.3 KiB
5.3 KiB
PoWHD Analysis Website
Professional website presenting analysis of PoWHD smart contract economics and deployment strategies.
Features
- Interactive Calculator - Real-time cost and ROI calculations
- Chain Comparison - BSC vs Ethereum deployment analysis
- Revenue Models - Detailed breakdown of monetization strategies
- Professional Design - Modern, responsive layout
- Download Resources - Smart contracts, documentation, calculators
- Marketing Templates - Ready-to-use promotional content
Architecture
- Frontend: HTML5, CSS3, JavaScript (Vanilla + Chart.js)
- Backend: Nginx (Alpine Linux container)
- Deployment: Docker + Docker Compose
- Port: 14888 (configurable)
- SSL: Handled by NPM reverse proxy
Quick Deployment
# Deploy to web server
./deploy.sh
# Manage container
./manage.sh status
./manage.sh logs
File Structure
website/
├── index.html # Main website
├── styles.css # Professional styling
├── script.js # Interactive functionality
├── nginx.conf # Nginx configuration
├── Dockerfile # Container definition
├── docker-compose.yml # Container orchestration
├── deploy.sh # Deployment script
├── manage.sh # Management script
└── assets/ # Downloadable resources
├── PoWHD_Example.sol
├── PoWHD_Explanation.md
├── cost_calculator.py
├── deployment_analysis.md
├── Updated_Chain_Comparison.md
└── pyramid_analysis.png
Deployment Process
- Preparation: Script packages all files locally
- Transfer: Files copied to web server via SCP
- Build: Docker container built on remote server
- Deploy: Container started on port 14888
- Verify: Health checks confirm successful deployment
Container Management
Start/Stop
./manage.sh start # Start container
./manage.sh stop # Stop container
./manage.sh restart # Restart container
Monitoring
./manage.sh status # Container status
./manage.sh logs # View logs
./manage.sh health # Health check
Updates
./manage.sh update # Deploy latest changes
Access Points
- Website: http://192.168.1.140:14888/
- Health Check: http://192.168.1.140:14888/health
- Assets: http://192.168.1.140:14888/assets/
NPM Reverse Proxy Config
Set up your Nginx Proxy Manager with:
- Scheme: http
- Forward Hostname/IP: 192.168.1.140
- Forward Port: 14888
- Block Common Exploits: ✓
- Websockets Support: ✓
Security Features
- Security headers (X-Frame-Options, X-XSS-Protection, etc.)
- File access restrictions
- Gzip compression
- Static asset caching
- Health monitoring endpoint
Customization
Update Prices
Edit script.js:
const ETH_PRICE = 4553; // Update ETH price
const BNB_PRICE = 1163; // Update BNB price
Modify Costs
Edit script.js:
const COSTS = {
bsc: {
low: 35,
medium: 42,
high: 60,
breakeven: 1773
},
// ...
};
Change Styling
Edit styles.css for colors, fonts, layout changes.
Update Content
Edit index.html for text changes, new sections, etc.
Marketing Integration
The website includes:
- Download Templates - Social media, email, Reddit posts
- Sharing Links - Optimized for referral tracking
- Professional Presentation - Builds credibility
- Interactive Tools - Engages visitors
- Mobile Responsive - Works on all devices
Troubleshooting
Container Won't Start
ssh crappy@192.168.1.140 'cd /home/crappy/ponzi && docker-compose logs'
Website Not Accessible
- Check container status:
./manage.sh status - Test health endpoint:
./manage.sh health - Check NPM proxy configuration
- Verify firewall allows port 14888
Files Not Updating
- Force rebuild:
./manage.sh update - Clear browser cache
- Check asset timestamps
Development
Local Testing
# Build locally
docker build -t powhd-test .
docker run -p 8080:80 powhd-test
# Access at http://localhost:8080
File Changes
After modifying files, redeploy:
./deploy.sh
Performance
- Nginx: High-performance web server
- Gzip: Compressed assets
- Caching: Static asset caching headers
- Alpine: Minimal container footprint
- CDN Ready: Chart.js loaded from CDN
Legal Compliance
- Educational purpose disclaimers
- Jurisdiction warnings
- Risk disclosures
- Professional presentation reduces regulatory scrutiny
Monitoring
Health Checks
- Automated endpoint:
/health - Returns "healthy" when operational
- Used by load balancers/monitoring
Log Monitoring
./manage.sh logs # Real-time logs
Resource Usage
ssh crappy@192.168.1.140 'docker stats powhd-analysis-site'
Support
For issues:
- Check container logs
- Verify network connectivity
- Test health endpoint
- Review nginx error logs
- Check file permissions
Updates
To update prices, costs, or content:
- Edit source files locally
- Run
./deploy.sh - Verify deployment with
./manage.sh health
The website will be automatically rebuilt and deployed with zero downtime.