privatebin.conf – privatebin CLI configuration file.
Contents
Description
The privatebin(1) command line interface create paste to an PrivateBin instance configured in the
config.json.
Examples
Minimal privatebin configuration file:
{
"bin": [
{
"name": "", // default
"host": "https://privatebin.net"
}
]
}
A bit more complete configuration file:
{
"bin": [
{
"name": "example",
"host": "bin.example.com",
"auth": {
"username": "john.doe",
"password": "s$cr$t"
},
"formatter": "markdown",
"burn-after-reading": false
},
{
"name": "",
"host": "https://privatebin.net"
"extra-header-fields": {
"Foo": "Bar",
},
},
],
"burn-after-reading": true
}
Files
~/.config/privatebin/config.json
Default location of the privatebin configuration. The file has to be created manually as it is
not installed with a standard installation.
Format
Toplevelobjectkeys:open-discussionbool (default: false)
The default value of open discussion for a paste.
burn-after-readingbool (default: false)
The default value of burn after reading for a paste.
formatterstring (default: “plaintext”)
The default formatter for a paste.
expirestring (default: “1day”)
The default time to live for a paste.
gzipbool (default: false)
Enable GZip the paste data.
extra-header-fieldsobject<string,string>
The extra HTTP header fields to include in the request sent.
binarray<bin>
The list of bin instances.
Thebinobjectformat:namestring
The name of the bin instance.
hoststring
The url of the bin instance.
authauth
The basic auth configuration of the bin instance.
expirestring
The default time to live for a paste.
open-discussionbool
The default value of open discussion for a paste.
burn-after-readingbool
The default value of burn after reading for a paste.
formatterstring
The formatter for the paste.
gzipbool
GZip the paste data.
extra-header-fieldsobject<string,string>
The extra HTTP header fields to include in the request sent.
Theauthobjectformat:usernamestring
The basic auth username.
passwordstring
The basic auth password.
Name
privatebin.conf – privatebin CLI configuration file.
