Ubuntu Server Installation
Last updated
Last updated
Ubuntu Server (22.04 LTS or later recommended)
Minimum 2GB RAM
Clean installation recommended
Cloudflare Account Setup
Create a Cloudflare account if you don't have one
Add your domain to Cloudflare
Update your domain's nameservers to Cloudflare's nameservers
DNS Configuration
Add an A record pointing to your server's IP address
Add a CNAME record for the domain (optional). Not required for sub.yourdomain.com
SSL/TLS Configuration in Cloudflare
Go to SSL/TLS section
Set encryption mode to "Full (strict)"
Obtain your broker's API credentials as per the openalgo documentation:
API Key
API Secret
Prepare the Redirection URL as per your domain name and broker name
The script will interactively prompt you for:
Your domain name (supports both root domains and subdomains)
Broker selection
Broker API credentials
The installation process will:
Install required packages
Configure Nginx with SSL
Set up the OpenAlgo application
Create systemd service with unique name based on domain and broker
Generate installation logs in the logs directory
Multi-Domain Deployment
The installation script supports deploying multiple instances on the same server:
Each deployment gets a unique service name (e.g., openalgo-yourdomain-broker)
Separate configuration files and directories for each deployment
Individual log files for each installation in the logs directory
Independent SSL certificates for each domain
Isolated Python virtual environments
Example of running multiple deployments:
Each deployment will:
Have its own systemd service
Use separate configuration files
Store logs in unique timestamped files
Run independently of other deployments
After installation completes, verify each deployment:
Check Service Status
Verify Nginx Configuration
Access Web Interfaces Test each deployment in your web browser:
Check Installation Logs
SSL Certificate Issues
Application Not Starting Example scenario: Managing multiple broker deployments
Nginx Issues
Installation Logs Example: Checking installation logs for multiple deployments
Service Management Examples
Log Management Examples
Nginx Configuration Examples
Installation Directory Examples
Firewall
The installation configures UFW to allow only HTTP, HTTPS, and SSH
Additional ports can be opened if needed:
SSL/TLS
Certificates are automatically renewed by Certbot
The installation configures modern SSL parameters
Regular updates are recommended:
Configure your broker settings in the web interface
Set up monitoring and alerts if needed
Regularly check logs for any issues
Keep the system updated with security patches
For issues and support:
Check the GitHub repository
Review the logs using commands provided above
Contact support with relevant log information
Remember to:
Regularly backup your configuration
Monitor system resources
Keep the system updated
Review security best practices