PeerTube: Difference between revisions
Appearance
imported>Onny Initial page |
No edit summary |
||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
[https://joinpeertube.org PeerTube] is a web application to host, browse and share uploaded videos via P2P in a federated network. | [https://joinpeertube.org PeerTube] is a web application to host, browse and share uploaded videos via P2P in a federated network. | ||
NixOS options to setup PeerTube as a service can be found here: [https://search.nixos.org/options?query=services.peertube&type=options PeerTube Options] | |||
== Installation == | == Installation == | ||
| Line 5: | Line 7: | ||
Following example code initializes a simple PeerTube instance | Following example code initializes a simple PeerTube instance | ||
{{file| | {{file|||<nowiki> | ||
networking.extraHosts = '' | networking.extraHosts = '' | ||
127.0.0.1 peertube.local | 127.0.0.1 peertube.local | ||
''; | ''; | ||
services.peertube = { | |||
"peertube | enable = true; | ||
" | localDomain = "peertube.local"; | ||
enableWebHttps = false; | |||
secrets.secretsFile = "/run/secrets/peertube"; | |||
database.createLocally = true; | |||
redis.createLocally = true; | |||
settings = { | |||
listen.hostname = "0.0.0.0"; | |||
instance.name = "PeerTube Test Server"; | |||
}; | |||
}; | }; | ||
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}} | |||
After rebuilding your system, open http://peertube.local:9000 in your browser to access PeerTube. The default administrator username is <code>root</code>. The initial password will be logged into the system journal, see the output of <code>journalctl -u peertube | grep "root" -A 2</code>. | |||
</ | |||
The generated config lives at: <code>/var/lib/peertube/config/production.json</code>. | |||
[[Category:Web Applications]] | |||
[[Category:Server]] | |||
Latest revision as of 16:33, 28 October 2026
PeerTube is a web application to host, browse and share uploaded videos via P2P in a federated network.
NixOS options to setup PeerTube as a service can be found here: PeerTube Options
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;
secrets.secretsFile = "/run/secrets/peertube";
database.createLocally = true;
redis.createLocally = true;
settings = {
listen.hostname = "0.0.0.0";
instance.name = "PeerTube Test Server";
};
};
After rebuilding your system, 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 | grep "root" -A 2.
The generated config lives at: /var/lib/peertube/config/production.json.