From ee3dc59322eb3a366f3594261491381db5084110 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Fri, 30 Jun 2017 23:15:36 +0100 Subject: Added max_size in the configuration file --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b3868b7..dceb7e4 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,17 @@ The unique ID of a paste is obtained from the SHA256 of the concatenation of title, time, and content. Rendering is minimal, but can be enhanced. +`binit` is currently configured through a simple key=value +configuration file. The available options are: + +* host (the hostname to listen on) +* port (the port to bind) +* paste\_dir (the folder where pastes are kept) +* templ\_dir (the folder where HTML files and templates are kept) +* max_size (the maximum allowed length of a paste, in bytes. Larger + pastes will be trimmed to that length) + + ### TODO -* Check maximum paste length -* Add a config file (hostname, port, pastedir) * Add a simple template system -- cgit v1.2.3