Simplify README

git-svn-id: file:///srv/svn/repo/marisa/trunk@52 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
dev 2021-10-20 22:15:47 +00:00
parent 16a02e999e
commit 24be4d8791

42
README
View File

@ -1,17 +1,17 @@
partage partage
======= =======
File upload system based on HTTP. File upload system based on HTTP.
Features Features
-------- --------
+ Simple web interface + No javascript needed!
+ Link expiration + Link expiration
+ Mimetype support + Mimetype support
+ Random filnames + Random filenames
+ Multiple file uploads + Multiple file uploads
+ Privilege dropping + Privilege drop
+ `chroot(2)`-ed + chroot(2) support
+ FastCGI support
Usage Usage
----- -----
@ -19,36 +19,14 @@ Refer to the partage(1) manual page for details and examples.
partage [-v] [-f partage.conf] 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 format is that of the INI file format.
The following configuration will accept connections via fastcgi over Uploading files is done via PUT and POST requests. Multiple files can
UNIX sockets. On startup the server will chroot into /var/www, and drop be sent via POST requests.
privileges to the www:daemon user:
bind = unix:/tmp/partage.sock curl -T file.png http://domain.tld
chroot = /var/www curl -F file=file.png -F expiry=3600 http://domain.tld
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
Installation Installation
------------ ------------