Updog is a replacement for Python's SimpleHTTPServer
.
It allows uploading and downloading via HTTP/S,
can set ad hoc SSL certificates and use HTTP basic auth.
The last version allows to generate a QR code to share the link
and also allows to display just image files in a more friendly way.
Install using pip:
pip3 install updog2
updog [-d DIRECTORY] [-p PORT] [-qr] [-q] [-i] [--password PASSWORD] [--ssl] [--version] [DIRECTORY]
Argument | Description |
---|---|
-d DIRECTORY, --directory DIRECTORY | Root directory [Default=.] |
-p PORT, --port PORT | Port to serve [Default=9090] |
-qr, --qr | Show QR code to access the page |
-q, --quiet | Do not display the QR code in the webpage |
-i, --images | Show the images in the directory |
--password PASSWORD | Use a password to access the page. (No username) |
--ssl | Enable transport encryption via SSL |
--version | Show version |
-h, --help | Show help |
Serve from your current directory:
updog2
Serve from another directory:
updog2 -d /another/directory
Serve from port 1234:
updog2 -p 1234
Password protect the page:
updog2 --password examplePassword123!
Please note: updog uses HTTP basic authentication. To login, you should leave the username blank and just enter the password in the password field.
Use an SSL connection:
updog2 --ssl
Show a QR code to access the page:
updog2 -qr
Show the images in the directory:
updog2 -i
More examples:
updog2 /tmp/mydog -iqp 1234 --password examplePassword123! --ssl -qr
This project is a fork of updog by sc0tfree.
The original project is no longer maintained, so I decided to fork it and keep it up to date.
The principal changes I made can be found in the CHANGELOG.