====================================================
  Streamora — Manual Installation Guide
====================================================

Recommended: Use the auto-installer instead:
  bash <(curl -s https://streamora.dev/updates/install.sh)

This manual guide is for environments where the
auto-installer cannot be used.


REQUIREMENTS
----------------------------------------------------
  - Root access
  - 64-bit Linux (Ubuntu, Debian, CentOS, RHEL, etc.)
  - 1 GB RAM minimum - depand on your streams - streamora itself almost take zero ram.


STEP 1: Install Dependencies (one command)
----------------------------------------------------

  Ubuntu / Debian:
    apt-get update && apt-get install -y --reinstall ffmpeg python3 python3-pip curl libcurl4

  CentOS / RHEL / Rocky:
    dnf install -y epel-release && dnf install -y ffmpeg python3 python3-pip curl

  Install mp4decrypt (DRM support):
    curl -o /usr/local/bin/mp4decrypt https://streamora.dev/updates/_resources/mp4decrypt && chmod 755 /usr/local/bin/mp4decrypt

  Install Python packages (DRM + HTTP):
    pip3 install pywidevine curl_cffi


STEP 2: Download & Install Streamora
----------------------------------------------------

  mkdir -p /opt/streamora
  curl -o /opt/streamora/streamora https://streamora.dev/updates/<VERSION_DIR>/<BINARY_NAME>
  chmod 755 /opt/streamora/streamora

  Find the latest version at: https://streamora.dev/updates/


STEP 3: Create Config
----------------------------------------------------

  curl -o /opt/streamora/streamora.conf https://streamora.dev/updates/_resources/default.conf

  Edit the config and set your admin password:
    nano /opt/streamora/streamora.conf

  Change these lines:
    password   = YourStrongPassword
    secret_key = (generate with: openssl rand -hex 24)


STEP 4: Install Service & Start
----------------------------------------------------

  curl -o /etc/systemd/system/streamora.service https://streamora.dev/updates/_resources/streamora.service
  systemctl daemon-reload && systemctl enable streamora && systemctl start streamora


DONE — Access Your Panel
----------------------------------------------------

  Open: http://YOUR_SERVER_IP:8585
  Login with the credentials from streamora.conf

  All settings (paths, ports, ffmpeg, etc.) can be
  changed from Admin Panel > Settings after login.


SERVICE COMMANDS
----------------------------------------------------

  systemctl start streamora       Start
  systemctl stop streamora        Stop
  systemctl restart streamora     Restart
  systemctl status streamora      Status
  journalctl -u streamora -f      Live logs


UPGRADING
----------------------------------------------------

  systemctl stop streamora
  curl -o /opt/streamora/streamora <NEW_BINARY_URL>
  chmod 755 /opt/streamora/streamora
  systemctl start streamora

  Config and database are preserved automatically.

====================================================
  https://streamora.dev/updates/
====================================================
