Changeset 52 in code


Ignore:
Timestamp:
Oct 20, 2021, 10:15:47 PM (4 years ago)
Author:
dev
Message:

Simplify README

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/README

    r36 r52  
    11partage
    22=======
    3 
    43File upload system based on HTTP.
    54
    65Features
    76--------
    8 + Simple web interface
     7+ No javascript needed!
    98+ Link expiration
    109+ Mimetype support
    11 + Random filnames
     10+ Random filenames
    1211+ Multiple file uploads
    13 + Privilege dropping
    14 + `chroot(2)`-ed
     12+ Privilege drop
     13+ chroot(2) support
     14+ FastCGI support
    1515
    1616Usage
     
    2020        partage [-v] [-f partage.conf]
    2121
    22 Configuration is done from its configuration file, partage.conf(5).
     22Configuration is done through its configuration file, partage.conf(5).
    2323The format is that of the INI file format.
    2424
    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:
     25Uploading files is done via PUT and POST requests. Multiple files can
     26be sent via POST requests.
    2827
    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
    5230
    5331Installation
Note: See TracChangeset for help on using the changeset viewer.