partage

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/partage.git
Log | Files | Refs | README | LICENSE

commit 07c4e33ba2433941bb84114b69b9809c71d9f72c
parent 46826d3f0a786487dbdcc7638e568dd057612251
Author: Willy Goiffon <dev@z3bra.org>
Date:   Thu, 21 Oct 2021 00:15:47 +0200

Simplify README

Diffstat:
MREADME | 44+++++++++++---------------------------------
1 file changed, 11 insertions(+), 33 deletions(-)

diff --git a/README b/README @@ -1,17 +1,17 @@ partage ======= - File upload system based on HTTP. Features -------- -+ Simple web interface ++ No javascript needed! + Link expiration + Mimetype support -+ Random filnames ++ Random filenames + Multiple file uploads -+ Privilege dropping -+ `chroot(2)`-ed ++ Privilege drop ++ chroot(2) support ++ FastCGI support Usage ----- @@ -19,36 +19,14 @@ Refer to the partage(1) manual page for details and examples. partage [-v] [-f partage.conf] -Configuration is done from its configuration file, partage.conf(5). +Configuration is done through its configuration file, partage.conf(5). The format is that of the INI file format. -The following configuration will accept connections via fastcgi over -UNIX sockets. On startup the server will chroot into /var/www, and drop -privileges to the www:daemon user: - - bind = unix:/tmp/partage.sock - chroot = /var/www - user = www - group = daemon - maxsize = 2147483648 # 2 Gib - -Configuration -------------- -In order for the web interface to work, the server needs access to 2 -template files, which must be location specified by the `tmplpath` -variable: - -- index.html -- upload.html - -Interface ---------- -Files are sent to the server using PUT and POST requests. -Using POST requests, one can set the expiration time by sending the -"expiry" parameter (in seconds). - - curl -X PUT -T file.png http://domain.tld - curl -X POST -Fuck=file.png -Fexpiry=3600 http://domain.tld +Uploading files is done via PUT and POST requests. Multiple files can +be sent via POST requests. + + curl -T file.png http://domain.tld + curl -F file=file.png -F expiry=3600 http://domain.tld Installation ------------