Skip to main content

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​

  1. Log in to launch.nife.io
  2. Go to Infrastructure β†’ Standalone Servers (or BYOH)
  3. Click Add Server button
  4. The installation wizard opens

Download for Your Operating System​

Download Monolith Agent Installer

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​

Add Server IP Access

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​

  1. In the Standalone Server Management dashboard
  2. Click Add Server button
  3. Complete Step 1: Download the Installer (already done on your server)
  4. In Step 2: Add Server IP Access, enter:
    • Server Name: prod-server-1
    • Server IP Address (with port): 43.204.217.109:5050
  5. Click Add Server button
  6. 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​

Standalone Server Management Dashboard

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​

  1. Check the dashboard regularly
  2. Monitor CPU, Memory, and Disk usage
  3. View logs for any issues
  4. Set up alerts for critical metrics
  5. Review service status

Scaling with Multiple Servers​

You can register multiple servers:

  1. Repeat the installation process on each server
  2. Assign unique names to each server
  3. Monitor all servers from one dashboard
  4. Deploy applications across servers
  5. Load balance with multiple servers

Deploying Applications​

Once your server is registered and active, you can deploy applications:

  1. Go to Applications
  2. Click Create New Application
  3. Select Standalone Server as deployment target
  4. Choose your server from the list
  5. Configure application settings
  6. 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:

  1. During installation, specify custom port
  2. Update firewall rules for new port
  3. Update server IP in Nife dashboard with new port
  4. Example: 43.204.217.109:8050

High Availability Setup​

For production deployments:

  1. Deploy agent on multiple servers
  2. Use load balancer in front of servers
  3. Monitor server health continuously
  4. Configure auto-restart policies
  5. 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:


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:

  1. Deploy your first application
  2. Set up monitoring and alerts
  3. Configure additional servers
  4. Explore advanced features

Get started deploying now at launch.nife.io!


Β© Nife - Deploy anything, anywhere