Install Nife Monolith Agent on Standalone Servers | BYOH Guide
Learn how to install the Nife Monolith Agent on your standalone servers. This guide walks you through deploying applications on your own hardware using the BYOH (Bring Your Own Hardware) approach.
What is Monolith Agent?β
The Nife Monolith Agent is a lightweight service that runs on your servers, allowing Nife to manage and monitor your applications. It enables you to use Nife's platform with your own infrastructureβbringing flexibility, control, and cost efficiency.
Key Benefits:
- Deploy applications on your own servers
- Full control over your infrastructure
- Use Nife's management and monitoring features
- Seamless integration with your existing hardware
- Support for multiple servers and scaling
Prerequisitesβ
Before installing the Monolith Agent, ensure you have:
- A standalone server (physical or cloud-hosted)
- Supported OS: macOS, Linux, or Windows
- Network connectivity to Nife API servers
- Administrator/root access on the server
- At least 2GB RAM and 10GB disk space
- Port 5050 available (default agent port)
Step 1: Download the Installerβ
The first step is downloading the Monolith Agent installer for your operating system.
Access the Installation Wizardβ
- Log in to launch.nife.io
- Go to Infrastructure β Standalone Servers (or BYOH)
- Click Add Server button
- The installation wizard opens
Download for Your Operating Systemβ
Choose your operating system:
For macOS:
# Download the macOS installer
# Run the downloaded .pkg file
# Follow the installation prompts
For Linux:
# Download the Linux installer
# Or use the command-line installation script:
curl -L https://api.nife.io/release/monolith/install.sh | sh
For Windows:
# Download the Windows installer
# Or use the PowerShell installation script:
iwr https://api.nife.io/release/monolith/install.ps1 -useb | iex
Installation Detailsβ
The installer will:
- β Download the Monolith Agent binary
- β Configure the system service
- β Start the agent service on port 5050
- β Enable automatic startup on server reboot
Installation Port: The agent runs on port 5050 by default and needs network connectivity to Nife API servers.
Step 2: Add Server IP Accessβ
After the installer finishes, you need to register the server in Nife by providing its IP address and a name.
Server Registration Formβ
Fill in the following details:
Server Name
- Enter a descriptive name for your server (e.g.,
prod-server-1,api-host,web-01) - Use lowercase letters, numbers, and hyphens
- Make it meaningful for easy identification
- Example:
prod-server-1
Server IP Address (with port)
- Enter the IP address and port of your server
- Format:
IP:PORT(e.g.,43.204.217.109:5050) - Make sure port 5050 is accessible from the internet
- If using a different port, update accordingly
- Example:
43.204.217.109:5050
Steps to Add Serverβ
- In the Standalone Server Management dashboard
- Click Add Server button
- Complete Step 1: Download the Installer (already done on your server)
- In Step 2: Add Server IP Access, enter:
- Server Name:
prod-server-1 - Server IP Address (with port):
43.204.217.109:5050
- Server Name:
- Click Add Server button
- Wait for connection verification
Step 3: Verify Server Connectionβ
After adding the server details, Nife will attempt to connect to your server.
Connection Statusβ
The dashboard shows server status:
- Active - Server is running and connected to Nife
- Inactive - Server is not reachable or agent is not running
- Offline - Server was previously connected but is now unreachable
Viewing Server Detailsβ
Once connected, you can:
- View Details - See server information, logs, and metrics
- Monitor Resources - Check CPU, Memory, and Disk usage
- Manage Services - Start, stop, and restart services
- View Metrics - Monitor performance and health
Server Information Displayedβ
- Server Name - Custom name you assigned
- IP Address - Server's IP and port
- Status - Connection status (Active/Inactive)
- CPU Usage - Percentage of CPU utilized
- Memory Usage - RAM consumption
- Disk Usage - Storage utilization
- Services - Running services count
- Last Updated - Last status check timestamp
Managing Your Standalone Serversβ
Dashboard Overviewβ
The Standalone Server Management dashboard provides:
Server Cards - Each server shows:
- Server name and status
- IP address and port
- Real-time metrics (CPU, Memory, Disk)
- Service count
- Quick actions (View Details, Edit, Delete)
Quick Actions
- Refresh - Update all server statuses
- Add Server - Register a new server
- View Details - See full server information
- Edit - Modify server settings
- Delete - Remove server from Nife
Monitoring Server Healthβ
- Check the dashboard regularly
- Monitor CPU, Memory, and Disk usage
- View logs for any issues
- Set up alerts for critical metrics
- Review service status
Scaling with Multiple Serversβ
You can register multiple servers:
- Repeat the installation process on each server
- Assign unique names to each server
- Monitor all servers from one dashboard
- Deploy applications across servers
- Load balance with multiple servers
Deploying Applicationsβ
Once your server is registered and active, you can deploy applications:
- Go to Applications
- Click Create New Application
- Select Standalone Server as deployment target
- Choose your server from the list
- Configure application settings
- Deploy your application
The agent will pull your code, build, and run your application on the server.
Best Practicesβ
β
Use Descriptive Names - Make server names clear and meaningful
β
Monitor Regularly - Check server health and metrics frequently
β
Keep Agent Updated - Update Monolith Agent periodically
β
Secure Your Servers - Use strong firewall rules and security groups
β
Backup Important Data - Implement regular backups
β
Monitor Resources - Set up alerts for high CPU/Memory usage
β
Plan Capacity - Ensure sufficient resources for your applications
β
Document Setup - Keep records of your server configuration
β
Use HTTPS - Enable SSL/TLS for secure communication
β
Regular Updates - Keep OS and dependencies updated
Security Considerationsβ
Firewall Configurationβ
Ensure proper firewall rules:
Allow Inbound:
- Port 5050 (Monolith Agent) from Nife API servers
- SSH/RDP for remote management (restrict to your IPs)
Allow Outbound:
- HTTPS (port 443) to Nife API servers
- Package managers (for application dependencies)
- Any ports your applications need
Network Securityβ
- Use VPN or private networks if possible
- Implement IP whitelisting where applicable
- Use strong authentication for server access
- Regularly audit access logs
- Keep SSH keys secure
Agent Securityβ
- The agent uses encrypted communication
- Authentication tokens are secure
- Regular security updates are released
- Monitor agent logs for suspicious activity
Advanced Configurationβ
Custom Portβ
To use a port other than 5050:
- During installation, specify custom port
- Update firewall rules for new port
- Update server IP in Nife dashboard with new port
- Example:
43.204.217.109:8050
High Availability Setupβ
For production deployments:
- Deploy agent on multiple servers
- Use load balancer in front of servers
- Monitor server health continuously
- Configure auto-restart policies
- Implement health checks
Scaling Considerationsβ
- Monitor resource usage on each server
- Add new servers as load increases
- Distribute applications across servers
- Use load balancing for traffic distribution
- Plan for redundancy and failover
Support and Resourcesβ
Documentation:
Community:
Support:
- Support Portal
- Email: [email protected]
Conclusionβ
You've successfully installed the Nife Monolith Agent on your standalone server! You can now:
β
Deploy applications to your own infrastructure
β
Monitor server health and performance
β
Manage multiple servers from one dashboard
β
Leverage Nife's platform features on your hardware
For next steps:
- Deploy your first application
- Set up monitoring and alerts
- Configure additional servers
- Explore advanced features
Get started deploying now at launch.nife.io!
Β© Nife - Deploy anything, anywhere