Skip to content

Wastebin

services.wastebin.enable

Whether to enable Wastebin, a pastebin service. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.package

The wastebin package to use. Type: package

Default

pkgs.wastebin

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.secretFile

Path to file containing sensitive environment variables. Some variables that can be considered secrets are:

  • WASTEBIN_PASSWORD_SALT: salt used to hash user passwords used for encrypting pastes.

  • WASTEBIN_SIGNING_KEY: sets the key to sign cookies. If not set, a random key will be generated which means cookies will become invalid after restarts and paste creators will not be able to delete their pastes anymore.

Type: null or path

Default

null

Example

"/run/secrets/wastebin.env"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings

Additional configuration for wastebin, see https://github.com/matze/wastebin#usage for supported values. For secrets use secretFile option instead.

Type: attribute set of (boolean or signed integer or string)

Default

{ }

Example

{WASTEBIN_TITLE = "My awesome pastebin";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.RUST_LOG

Influences logging. Besides the typical trace, debug, info etc. keys, you can also set the tower_http key to some log level to get additional information request and response logs.

Type: string

Default

"info"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_ADDRESS_PORT

Address and port to bind to Type: string

Default

"0.0.0.0:8088"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_BASE_URL

Base URL for the QR code display. If not set, the user agent's Host header field is used as an approximation.

Type: string

Default

"http://localhost"

Example

"https://myhost.tld"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_CACHE_SIZE

Number of rendered syntax highlight items to cache. Can be disabled by setting to 0. Type: signed integer

Default

128

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_DATABASE_PATH

Path to the sqlite3 database file. If not set, an in-memory database is used. Type: string

Default

"/var/lib/wastebin/sqlite3.db"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_HTTP_TIMEOUT

Maximum number of seconds a request can be processed until wastebin responds with 408 Type: signed integer

Default

5

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_MAX_BODY_SIZE

Number of bytes to accept for POST requests Type: signed integer

Default

1024

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.settings.WASTEBIN_TITLE

Overrides the HTML page title Type: string

Default

"wastebin"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix

services.wastebin.stateDir

State directory of the daemon. Type: path

Default

"/var/lib/wastebin"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/wastebin.nix