Live miner, New api integrations, Fast#24
Merged
marctheshark3 merged 60 commits intomainfrom Feb 26, 2025
Merged
Conversation
Owner
marctheshark3
commented
Dec 7, 2024
- Fix API and integrated with new changes to allow for alot faster load times
- adjusted formating a little bit
- modularized the mining page and callbacks
- Live Miner ID token look uip in Miner Dash
- Added comprehensive security headers and rate limiting - Implemented Redis caching and improved data management - Updated Docker and nginx configurations for better resource management - Enhanced logging and error handling across multiple components - Integrated environment-based configuration with dotenv support - Improved frontend and backend resilience with better error tracking
- Updated default_values.yaml to use a nested dictionary structure - Modified data_manager.py to handle Docker container path configuration - Removed unnecessary 'here' artifact in mining_page.py layout - still not working for container
…ment - Simplified Dockerfile and docker-compose configuration - Removed redundant docker-compose.yml file - Updated .env.example with minimal, production-focused settings - Reduced logging verbosity in app.py - Simplified application initialization and error handling - Cleaned up configuration file structure -WIP
- Changed Redis port from 6379 to 6380 in docker-compose.yaml - Updated both container internal and external port mappings - Ensures consistent Redis connection for production deployment
- Enhanced app.py with robust Redis connection handling and logging - Added wait_for_redis function to ensure reliable Redis connectivity - Updated Docker and docker-compose configurations for improved session management - Simplified WSGI application creation and error handling - Improved logging and configuration management across components
- Updated rate limiting strategy with more flexible request counting - Improved Content Security Policy (CSP) for development and production environments - Modified security headers to allow iframe embedding - Updated Dash interval timings to run at full hour intervals - Updated package dependencies for http-proxy-middleware - Adjusted front page layout to use localhost minter URL
- Included npm run build command in Dockerfile to ensure application is built during container creation - Prepares the application for deployment by compiling frontend assets
- Updated .env.example with domain and SSL configuration variables - Modified docker-compose.yaml to include Certbot service for SSL certificate management - Added comprehensive README section explaining domain and SSL setup - Configured dynamic nginx configuration with environment-based templating - Introduced volumes for SSL certificate storage and management
- Added trailing whitespace to npm run build command - No functional changes to the build process
- Added BASE_URL environment variable to docker-compose.yaml - Updated front_page.py to use BASE_URL for minter iframe and custom URL generation - Default to 'http://localhost' when BASE_URL is not set - Simplified iframe styling and removed unnecessary sandbox attribute
- Added unique UUID to miner-id-minter URLs for dynamic routing - Updated front_page.py to use an anchor tag with target="_blank" for minting button - Modified nginx configuration to handle UUID-based minter paths - Improved user experience by enabling external minter page opening
- Removed dynamic UUID generation for miner-id-minter URLs - Updated docker-compose.yaml to set REACT_APP_BASE_URL - Modified front_page.py to simplify button and iframe rendering - Updated nginx configuration to correctly proxy miner-id-minter service - Added sandbox attribute to iframe for improved security
- Added dynamic UUID generation for miner-id-minter URLs - Updated callback to dynamically set iframe source when mint button is clicked - Added 'minter-iframe' ID to iframe for dynamic source manipulation - Utilized callback_context to handle different button click scenarios
- Replaced BASE_URL with BASE_HOST environment variable - Added explicit port 3000 for minting service URLs - Updated iframe, mint button, and modal sources to use new host and port configuration - Improved environment-specific URL generation for miner ID minter
- Updated .env.example with new MINTING_SERVICE_URL environment variable - Refactored front_page.py to use MINTING_SERVICE_URL for minting service URLs - Added fallback to ergominers.com URL if MINTING_SERVICE_URL is not set - Replaced BASE_HOST references with more flexible MINTING_SERVICE_URL - Improved configuration flexibility for minter service URLs
- Replaced Dash application with Flask for serving frontend - Enabled CORS for all routes - Updated routing to serve React static files - Simplified app initialization and routing logic - Removed Dash-specific callback and layout
- Implemented multi-stage Docker build for optimized production deployment - Switched from Node.js runtime to Nginx for serving static files - Removed Flask app.py and replaced with Nginx configuration - Simplified container build process - Exposed port 3000 for consistent networking
- Enhanced .env configuration with new domain, SSL, and minting service settings - Updated Content Security Policy to allow iframe embedding from ergominers.com - Modified off-chain service to improve CORS and framing support - Refactored Dockerfile for simplified React and Flask deployment - Added health check endpoint and improved cross-origin configurations - Updated nginx settings to allow iframe and cross-origin requests
- Included .env file in .gitignore to prevent sensitive configuration details from being tracked - Ensures environment-specific credentials and settings remain local and unversioned
- Included .env file in .gitignore to prevent sensitive configuration details from being tracked - Ensures environment-specific credentials and settings remain local and unversioned
- Updated .env.example with BASE_URL configuration and improved minting service URL comments - Dynamically generate Content Security Policy based on minting service URL - Improved NGINX configuration to handle minting service static assets and UUID paths - Refactored off-chain Flask app to better handle static files and routing - Added more flexible URL handling and frame embedding support - Enhanced security and configuration flexibility for minting service deployment
- Updated Docker Compose to set PUBLIC_URL and REACT_APP_PUBLIC_URL for miner-id-minter - Enhanced NGINX configuration to handle static assets and routing for /miner-id-minter subpath - Added logging to Flask app for better visibility of path handling - Modified Dockerfile to support PUBLIC_URL build and runtime configuration - Improved static file and routing support for subpath deployment
- Deleted CryptoJS import and encryption/decryption functions - Simplified pool configuration dictionary by removing encrypted payout - Directly store minimum payout value instead of encrypting it
- Added dark mode theme configuration across frontend and backend - Enhanced React app's index.html with responsive styling and iframe optimization - Updated App.tsx and Create component with improved layout and sizing - Modified Flask routes to inject dark mode theme parameter - Updated Docker Compose to set REACT_APP_THEME environment variable - Increased iframe height and improved component responsiveness
- Implemented advanced token verification for Sigma Bytes NFTs and voucher tokens - Added comprehensive wallet token checking with detailed logging - Introduced fallback mechanisms for token validation - Implemented token burning process with extensive validation checks - Updated minimum payout validation and error handling - Enhanced UI to display more detailed minting and token information - Improved error messaging for token-related issues
- Added robust wallet connection method with comprehensive error handling - Enhanced token verification logic with detailed address matching - Implemented new state variable for wallet connection status - Updated UI to reflect wallet connection state - Added more granular error messages for wallet and token-related issues - Improved logging and debugging for token validation process
- Deleted BurnTokens component import - Removed "Burn Miner ID" tab from TabList - Removed corresponding TabPanel for BurnTokens component - Simplified App.tsx navigation structure
- Enhanced minimum payout input validation with more robust parsing - Added support for decimal input with improved formatting - Implemented input blur handling to ensure consistent number formatting - Updated NumberInput component with more flexible input and stepper behavior - Added input state management to track raw input and parsed numeric value - Improved error handling and validation for minimum payout input~
- Added SSL configuration to Nginx with Let's Encrypt certificate support - Implemented HTTP to HTTPS redirection - Updated docker-compose.yaml to include SSL certificate volumes and certbot configuration - Enhanced Nginx configuration with security headers and SSL best practices - Added ACME challenge support for domain validation
- Removed SSL and HTTPS-related configuration from docker-compose.yaml - Deleted init-ssl.sh initialization script - Removed SSL-SETUP.md documentation - Simplified Nginx configuration to use default HTTP mode - Removed SSL certificate and Let's Encrypt volumes - Updated Nginx server configuration to support localhost and custom domain
- Refactored `get_wallet_balance` method to use Ergo Explorer API for more reliable balance retrieval - Enhanced error handling and logging in token and wallet balance methods - Added robust JSON parsing and validation for token descriptions - Improved demurrage calculation to more accurately identify outgoing transactions - Standardized logging across utility functions
…ter configuration - Added database configuration variables to .env.example - Introduced payment-updater service in docker-compose.yaml - Updated README.md with comprehensive documentation and improved formatting - Enhanced environment configuration and deployment instructions
- Deleted legacy shark_api_old.py file containing outdated API interaction code - Removed unused DataManager, ApiReader, and related utility classes - Cleaned up unnecessary async and sync API request methods - Eliminated deprecated data management and API interaction utilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.