https://github.com/xyproto/snusnu
HTTP/2 web server for static files
https://github.com/xyproto/snusnu
deprecated static-website webserver
Last synced: 5 months ago
JSON representation
HTTP/2 web server for static files
- Host: GitHub
- URL: https://github.com/xyproto/snusnu
- Owner: xyproto
- License: mit
- Created: 2015-03-26T11:07:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-26T11:08:39.000Z (over 10 years ago)
- Last Synced: 2025-01-11T01:12:21.931Z (9 months ago)
- Topics: deprecated, static-website, webserver
- Language: Go
- Size: 313 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snusnu [](https://travis-ci.org/xyproto/snusnu)
Simple HTTP/2 server, for serving the files in a given directory.
**DEPRECATED!** I would rather recommend [Algernon](https://github.com/xyproto/algernon).
Features and limitations
------------------------* Supports HTTP/2 and HTTPS.
* Supports Markdown when displaying files ending with `.md`.
* If `index.html`, `index.md` or `index.txt` is found, it will be used for the main page.
* It's reasonably fast. Runs as a native executable.
* Uses UTF-8 whenever possible.
* Only sets Content-Type for a few commonly used filetypes.
* Self-signed TLS certificates will make the browser complain, unless the certificates are imported somehow.Usage
-----`snusnu [directory] [host:port] [certfile] [keyfile]`
`host:port` can be just `:port` for localhost.
Examples
------------------------------Share the current directory as https://localhost:3000/
`snusnu . :3000`
---
Share a single file as the main page at https://localhost/. This will make snusnu listen to port 443, which may need more permissions. Run as root or a dedicated user (recommended).
`./snusnu README.md`
Screenshot
----------Old screenshot. The new design is cleaner.
General information
-------------------* Version: 0.3
* License: MIT
* Alexander F Rødseth