Skip to content

Peertube

services.peertube.configureNginx

Configure nginx as a reverse proxy for peertube. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.dataDirs

Allow access to custom data locations. Type: list of path

Default

[ ]

Example

["/opt/peertube/storage""/var/cache/peertube"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.database.createLocally

Configure local PostgreSQL database server for PeerTube. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.database.host

Database host address or unix socket. Type: string

Default

if config.services.peertube.database.createLocallythen "/run/postgresql"else null

Example

"192.168.15.47"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.database.name

Database name. Type: string

Default

"peertube"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.database.passwordFile

Password for PostgreSQL database. Type: null or path

Default

null

Example

"/run/keys/peertube/password-postgresql"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.database.port

Database host port. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

5432

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.database.user

Database user. Type: string

Default

"peertube"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.enable

Whether to enable Peertube. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.enableWebHttps

Whether clients will access your PeerTube instance with HTTPS. Does NOT configure the PeerTube webserver itself to listen for incoming HTTPS connections. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.group

Group under which Peertube runs. Type: string

Default

"peertube"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.listenHttp

The port that the local PeerTube web server will listen on. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

9000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.listenWeb

The public-facing port that PeerTube will be accessible at (likely 80 or 443 if running behind a reverse proxy). Clients will try to access PeerTube at this port. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

9000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.localDomain

The domain serving your PeerTube instance. Type: string

Example

"peertube.example.com"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.package

PeerTube package to use. Type: package

Default

pkgs.peertube

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.redis.createLocally

Configure local Redis server for PeerTube. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.redis.enableUnixSocket

Use Unix socket. Type: boolean

Default

config.services.peertube.redis.createLocally

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.redis.host

Redis host. Type: null or string

Default

if config.services.peertube.redis.createLocally && !config.services.peertube.redis.enableUnixSocketthen "127.0.0.1"else null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.redis.passwordFile

Password for redis database. Type: null or path

Default

null

Example

"/run/keys/peertube/password-redis-db"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.redis.port

Redis port. Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

if config.services.peertube.redis.createLocally && config.services.peertube.redis.enableUnixSocketthen nullelse 6379

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.secrets.secretsFile

Secrets to run PeerTube. Generate one using openssl rand -hex 32

Type: null or path

Default

null

Example

"/run/secrets/peertube"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.serviceEnvironmentFile

Set environment variables for the service. Mainly useful for setting the initial root password. For example write to file: PT_INITIAL_ROOT_PASSWORD=changeme

Type: null or path

Default

null

Example

"/run/keys/peertube/password-init-root"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.settings

Configuration for peertube. Type: JSON value

Example

{listen = {hostname = "0.0.0.0";};log = {level = "debug";};storage = {tmp = "/opt/data/peertube/storage/tmp/";logs = "/opt/data/peertube/storage/logs/";cache = "/opt/data/peertube/storage/cache/";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.smtp.createLocally

Configure local Postfix SMTP server for PeerTube. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.smtp.passwordFile

Password for smtp server. Type: null or path

Default

null

Example

"/run/keys/peertube/password-smtp"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix

services.peertube.user

User account under which Peertube runs. Type: string

Default

"peertube"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/peertube.nix