Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshuarli/srv

minimalist http(s) server and file browser
https://github.com/joshuarli/srv

file-browser file-server http-server

Last synced: about 2 months ago
JSON representation

minimalist http(s) server and file browser

Awesome Lists containing this project

README

        

# srv

minimalist http(s) server and file browser.

## download

static executables for some platforms can be found [here](https://github.com/joshuarli/srv/releases).

## usage

Simply `srv`. Defaults are `-p 8000 -b 127.0.0.1 -d .`

## usage: TLS

TLS and HTTP/2 are enabled if you pass `-c certfile -k keyfile`.

to make self-signed certs:

openssl req -nodes -new -x509 -keyout key.pem -out cert.pem -subj "/"

or better, locally trusted certs with [mkcert](https://github.com/FiloSottile/mkcert):

mkcert -install
mkcert -key-file key.pem -cert-file cert.pem -ecdsa 127.0.0.1