PeerTube: Difference between revisions
m Category:Applications |
Jennydaman (talk | contribs) Provision Redis and PostgreSQL using createLocally setting |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
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 = { | |||
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"; | |||
}; | }; | ||
}; | }; | ||
</nowiki>}} | </nowiki>|name=/etc/nixos/configuration.nix|lang=nix}} | ||
After that 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</code>. | After that 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</code>. | ||
[[Category:Applications]] | [[Category:Web Applications]] | ||
[[Category:Server]] | |||