Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bboe/extended_http_server
An extended version of python's SimpleHTTPServer that supports https, authentication, rate limiting, and download resuming.
https://github.com/bboe/extended_http_server
Last synced: 2 months ago
JSON representation
An extended version of python's SimpleHTTPServer that supports https, authentication, rate limiting, and download resuming.
- Host: GitHub
- URL: https://github.com/bboe/extended_http_server
- Owner: bboe
- License: bsd-2-clause
- Created: 2012-08-26T06:44:20.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2021-07-17T06:43:21.000Z (over 3 years ago)
- Last Synced: 2024-05-01T23:57:53.809Z (8 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 90
- Watchers: 13
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
### Installation
pip install ext_http_server
### Generate a certificate
Run the following to generate cert.pem:
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
### Running ext_http_server
If you have files you want to serve in `/tmp/path/to/files/` run the following
to serve them up with a max outgoing throughput of 16KBps:ext_http_server --cert cert.pem -d /tmp/path/to/files -r16 -a foo:bar
By default, you will be able to access the webserver at
[https://localhost:8000](https://localhost:8000). To authenticate, use the
username `foo` and the password `bar` as indicated by the `-a foo:bar`
argument. Note that multiple `-a` arguments can be added to add more than one
user.