2024-12-20 06:15:17 +03:00
|
|
|
{ ... }:
|
2024-12-02 21:12:45 +03:00
|
|
|
{
|
2024-12-20 06:15:17 +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";
|
2024-12-18 09:40:11 +03:00
|
|
|
};
|
2024-12-20 06:15:17 +03:00
|
|
|
expire = {
|
|
|
|
default = "1week";
|
2024-12-18 09:40:11 +03:00
|
|
|
};
|
2024-12-20 06:15:17 +03:00
|
|
|
formatter_options = {
|
|
|
|
markdown = "Markdown";
|
|
|
|
plaintext = "Plain Text";
|
|
|
|
syntaxhighlighting = "Source Code";
|
|
|
|
};
|
|
|
|
traffic = {
|
|
|
|
limit = 10;
|
|
|
|
};
|
|
|
|
purge = {
|
|
|
|
limit = 0;
|
|
|
|
batchsize = 10;
|
2024-12-18 09:40:11 +03:00
|
|
|
};
|
2024-12-20 06:15:17 +03:00
|
|
|
# model = {
|
|
|
|
# class = "Database";
|
|
|
|
# };
|
|
|
|
# model_options = {
|
|
|
|
# "opt[12]" = true;
|
|
|
|
# dsn = "pgsql:dbname=privatebin";
|
|
|
|
# pwd = "privatebin";
|
|
|
|
# tbl = "privatebin_";
|
|
|
|
# usr = "privatebin";
|
|
|
|
# };
|
2024-12-18 09:40:11 +03:00
|
|
|
};
|
|
|
|
};
|
2024-12-02 21:12:45 +03:00
|
|
|
}
|