PeerTube

Revision as of 21:09, 20 May 2026 by Jennydaman (talk | contribs) (Provision Redis and PostgreSQL using createLocally setting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PeerTube is a web application to host, browse and share uploaded videos via P2P in a federated network.

Installation

Following example code initializes a simple PeerTube instance

❄︎ /etc/nixos/configuration.nix
networking.extraHosts = ''
  127.0.0.1 peertube.local
'';

services.peertube = {
  enable = true;
  localDomain = "peertube.local";
  enableWebHttps = false;
  database.createLocally = true;
  redis.createLocally = true;
  settings = {
    listen.hostname = "0.0.0.0";
    instance.name = "PeerTube Test Server";
  };
};

After that open http://peertube.local:9000 in your browser to access PeerTube. The default administrator username is root. The initial password will be logged into the system journal, see the output of journalctl -u peertube.