tests
Tom Priebe 12 years ago committed by Sebastian Lohff
parent 3a06b0699d
commit be6e735a43

@ -638,7 +638,7 @@ def main():
parser.add_argument('-u', '--upload', action="store_true", default=False, \ parser.add_argument('-u', '--upload', action="store_true", default=False, \
help="Enable uploads to a given directory") help="Enable uploads to a given directory")
parser.add_argument('-s', '--max-upload-size', type=str, \ parser.add_argument('-s', '--max-upload-size', type=str, \
help="Limit uploadsize in kb. Size modifiers are allowed, e.g. 2G, 12Mb, 1b.") help="Limit upload size in kB. Size modifiers are allowed, e.g. 2G, 12MB, 1B.")
parser.add_argument('-l', '--list-dir', action="store_true", default=False, \ parser.add_argument('-l', '--list-dir', action="store_true", default=False, \
help="Show directory indexes and allow access to all subdirectories") help="Show directory indexes and allow access to all subdirectories")
parser.add_argument('--ssl', action="store_true", default=False, \ parser.add_argument('--ssl', action="store_true", default=False, \

@ -11,13 +11,13 @@ servefile \- small HTTP-Server for temporary file transfer
\fIfile/directory\fR \fIfile/directory\fR
.SH DISCLAIMER .SH DISCLAIMER
Do not use this as a normal webserver. This server is optimized for running Do not use this as a normal web server. This server is optimized for running
a short time and to send files to other people, not for doing high-performance a short time and to send files to other people, not for doing high-performance
static file serving. static file serving.
.SH DESCRIPTION .SH DESCRIPTION
servefile is a small HTTP-server intended for temporary file transfer mostly Servefile is a small HTTP-server intended for temporary file transfer mostly
in the local network. It aims to make transfering single files as painless as in the local network. It aims to make transferring single files as painless as
possible and to replace tar/netcat solutions. possible and to replace tar/netcat solutions.
With just a file as argument servefile serves just that one file and redirects With just a file as argument servefile serves just that one file and redirects
@ -29,7 +29,7 @@ uploaded files into that directory. When uploading with curl or wget the
filename is extracted from the path part of the url used for the upload. filename is extracted from the path part of the url used for the upload.
For SSL support python-openssl (pyssl) needs to be installed. If no key and For SSL support python-openssl (pyssl) needs to be installed. If no key and
cert is given, servefile will generate a keypair for you and display its cert is given, servefile will generate a key pair for you and display its
fingerprint. fingerprint.
In \fB--tar\fR mode the given file or directory will be packed on (each) In \fB--tar\fR mode the given file or directory will be packed on (each)
@ -60,8 +60,8 @@ Port to listen on
Enable uploads to a given directory Enable uploads to a given directory
.TP .TP
\fB\-s\fR MAX_UPLOAD_SIZE, \fB\-\-max\-upload\-size\fR MAX_UPLOAD_SIZE \fB\-s\fR MAX_UPLOAD_SIZE, \fB\-\-max\-upload\-size\fR MAX_UPLOAD_SIZE
Limit uploadsize in kb. Size modifiers are allowed, Limit upload size in kB. Size modifiers are allowed,
e.g. 2G, 12Mb, 1b. e.g. 2G, 12MB, 1B.
.TP .TP
\fB\-l\fR, \fB\-\-list\-dir\fR \fB\-l\fR, \fB\-\-list\-dir\fR
Show directory indexes and allow access to all Show directory indexes and allow access to all
@ -72,8 +72,8 @@ Enable SSL. If no key/cert is specified one will be
generated. generated.
.TP .TP
\fB\-\-key\fR KEY \fB\-\-key\fR KEY
Keyfile to use for SSL. If no cert is given with Key file to use for SSL. If no cert is given with
\fB\-\-cert\fR the keyfile will also be searched for a cert \fB\-\-cert\fR the key file will also be searched for a cert
.TP .TP
\fB\-\-cert\fR CERT \fB\-\-cert\fR CERT
Certfile to use for SSL Certfile to use for SSL

Loading…
Cancel
Save