Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 12 days ago
JSON representation
minimalist http(s) server and file browser
- Host: GitHub
- URL: https://github.com/joshuarli/srv
- Owner: joshuarli
- License: isc
- Created: 2019-07-20T18:35:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T04:06:45.000Z (over 1 year ago)
- Last Synced: 2024-10-16T01:13:45.506Z (24 days ago)
- Topics: file-browser, file-server, http-server
- Language: Go
- Homepage:
- Size: 103 KB
- Stars: 121
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - joshuarli/srv - minimalist http(s) server and file browser (others)
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