nix/host/x86_64-linux/home/Privatebin.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

{ ... }:
2024-12-02 21:12:45 +03:00
{
services.privatebin = {
enable = true;
enableNginx = true;
virtualHost = "paste.voronind.com";
settings = {
main = {
compression = "none";
defaultformatter = "plaintext";
discussion = false;
email = true;
fileupload = false;
languageselection = false;
name = "voronind pastebin";
password = true;
qrcode = true;
sizelimit = 10 * 1000 * 1000;
template = "bootstrap";
};
expire = {
default = "1week";
};
formatter_options = {
markdown = "Markdown";
plaintext = "Plain Text";
syntaxhighlighting = "Source Code";
};
traffic = {
limit = 10;
};
purge = {
limit = 0;
batchsize = 10;
};
# model = {
# class = "Database";
# };
# model_options = {
# "opt[12]" = true;
# dsn = "pgsql:dbname=privatebin";
# pwd = "privatebin";
# tbl = "privatebin_";
# usr = "privatebin";
# };
};
};
2024-12-02 21:12:45 +03:00
}