HARDY AUTOSCRIPT

Complete Installation Documentation

Installation Guide

📋 Prerequisites

  • Ubuntu 20.04 LTS (Recommended)
  • Minimum 1GB RAM
  • 10GB Disk Space
  • Root Access
  • Domain Name (for SSL certificates)
1 Download the Installation Script
# Download the setup script
wget https://ssc.nexajs.com/setup.sh

# Make the script executable
chmod +x setup.sh
2 Run the Installation Script
# Execute the installation script
./setup.sh

# Or use bash to run the script
bash setup.sh
3 Follow Interactive Setup

The script will guide you through:

  • System updates and dependency installation
  • Domain name configuration
  • SSL certificate generation
  • Service configuration
  • Firewall setup
4 Complete Installation
# After installation, check services status
systemctl status xray
systemctl status nginx
systemctl status haproxy

One-Line Installation

# Complete one-line installation command
wget -O setup.sh https://ssc.nexajs.com/setup.sh && chmod +x setup.sh && ./setup.sh

Post-Installation

📝 Note: After installation, you can access the following:
# Web Admin Panel
https://your-domain.com

# Configuration files location
/etc/xray/config.json # Xray configuration
/etc/nginx/nginx.conf # Nginx configuration
/etc/haproxy/haproxy.cfg # HAProxy configuration

Management Commands

# Restart all services
systemctl restart xray nginx haproxy

# Check service status
systemctl status xray
systemctl status nginx
systemctl status haproxy

# View logs
journalctl -u xray -f
tail -f /var/log/nginx/access.log
⚠️ Important: Make sure to:
  • Backup your server before installation
  • Use a valid domain name with proper DNS records
  • Keep your server updated regularly
  • Monitor resource usage after installation