This document describes the functionality of all bash scripts in the project.
A script for managing Cloudflare DNS configuration.
- Validates Cloudflare API token and domain
- Checks Zone ID for the domain
- Verifies DNS records
- Checks proxy status
- Provides detailed status report and suggestions
./cloudflare.sh <domain> <cloudflare_token>A testing script for the deployment server.
- Tests deployment server on localhost:8000
- Performs multiple validation tests:
- Basic connection test using CURL
- Full deployment request test
- Port 8000 availability check
- Python process verification
- ReactJS service status check
- Log file inspection
- Firewall rules verification
./deploy-git.shA script for deploying projects using ZIP archives.
- Validates input parameters
- Packages project directory into base64-encoded tar.gz
- Sends deployment request to deployment server
./deploy-zip.sh <project-path> <domain> <cloudflare-token>A comprehensive script for setting up domain configuration and deployment infrastructure.
-
Caddy Server Configuration:
- Sets up reverse proxy for reactjs.dynapsys.com
- Configures security headers
- Sets up logging
- Enables GZIP compression
-
Deployment Script Setup:
- Creates deployment script with following capabilities:
- Git repository cloning
- Local file copying
- NPM dependencies installation
- React application building
- Cloudflare DNS configuration
- PM2 process management
- Creates deployment script with following capabilities:
- Automatic Cloudflare DNS record management
- PM2 process management integration
- Secure headers configuration
- Logging setup
- Environment configuration
The script is typically run once during initial setup:
./domain.sh- Tests Caddy server configuration
- Verifies server responses
- Checks SSL/TLS setup
- Validates Python environment
- Checks script permissions
- Verifies Python dependencies
- Checks status of all services
- Validates service configurations
- Monitors service logs
- Repairs configuration issues
- Resets permissions where needed
- Validates configuration files
- Handles Git operations
- Manages repository cloning
- Validates Git URLs
- Manages installation of dependencies
- Sets up required permissions
- Configures initial system setup
- Configures PHP environment
- Sets up PHP-FPM
- Manages PHP dependencies
- Provides system status overview
- Checks all service states
- Displays relevant logs
- Error handling and validation
- Logging functionality
- Permission management
- Security considerations
- Service status checking
- Configuration validation
- Input validation
- Error handling
- Logging
- Security headers
- Permission management
- Service monitoring
- Configuration backup
- Clean error messages
- Status reporting
- Documentation within scripts