Changeset 52 in code
- Timestamp:
- Oct 20, 2021, 10:15:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README
r36 r52 1 1 partage 2 2 ======= 3 4 3 File upload system based on HTTP. 5 4 6 5 Features 7 6 -------- 8 + Simple web interface7 + No javascript needed! 9 8 + Link expiration 10 9 + Mimetype support 11 + Random fil names10 + Random filenames 12 11 + Multiple file uploads 13 + Privilege dropping 14 + `chroot(2)`-ed 12 + Privilege drop 13 + chroot(2) support 14 + FastCGI support 15 15 16 16 Usage … … 20 20 partage [-v] [-f partage.conf] 21 21 22 Configuration is done fromits configuration file, partage.conf(5).22 Configuration is done through its configuration file, partage.conf(5). 23 23 The format is that of the INI file format. 24 24 25 The following configuration will accept connections via fastcgi over 26 UNIX sockets. On startup the server will chroot into /var/www, and drop 27 privileges to the www:daemon user: 25 Uploading files is done via PUT and POST requests. Multiple files can 26 be sent via POST requests. 28 27 29 bind = unix:/tmp/partage.sock 30 chroot = /var/www 31 user = www 32 group = daemon 33 maxsize = 2147483648 # 2 Gib 34 35 Configuration 36 ------------- 37 In order for the web interface to work, the server needs access to 2 38 template files, which must be location specified by the `tmplpath` 39 variable: 40 41 - index.html 42 - upload.html 43 44 Interface 45 --------- 46 Files are sent to the server using PUT and POST requests. 47 Using POST requests, one can set the expiration time by sending the 48 "expiry" parameter (in seconds). 49 50 curl -X PUT -T file.png http://domain.tld 51 curl -X POST -Fuck=file.png -Fexpiry=3600 http://domain.tld 28 curl -T file.png http://domain.tld 29 curl -F file=file.png -F expiry=3600 http://domain.tld 52 30 53 31 Installation
Note:
See TracChangeset
for help on using the changeset viewer.