johann-petrak/python-tiny-http-server: A simple ad-hoc http server to serve static pages, optionally use basic auth and https
github.com·3d·
Discuss: Hacker News
📦Caddy
Preview
Report Post

python-tiny-http-server

A simple ad-hoc HTTP server for serving static pages, similar to python -m http.server.

This supports:

  • Basic authentication, for one or more user:password pairs, which can be specified from the command line and/or be read in from a file.
  • Support for HTTPS using a cert and key file
  • Support to run as CGI server, but without basic auth / HTTPS for now
  • Support for optionally uploading files, with or without the ability to override existing files

Installation

pip install -U tiny-http-server

Usage

usage: tiny-http-server [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY]
[--port PORT] [--authfile AUTHFILE]
[--auth USERNAME:PASSWORD] [--cert CERT] [--key KEY]

Tiny HTTP server with optional basic authentication and https support.

opti...

Similar Posts

Loading similar posts...