A small application with no dependencies to expose a local folder as an HTTP server. It includes a file explorer and a Markdown renderer.
MIT License
Bot releases are visible (Hide)
Published by patrickdappollonio 5 days ago
From this release forward, http-server
will only generate etags for files smaller than 5 Megabytes (5 * 1024 * 1024). This value is configurable, and using a smaller value will use less RAM.
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.5.0...v2.5.1
Published by patrickdappollonio 19 days ago
Many thanks to @muse-sisay for adding support for custom 404 handling and solving a longstanding feature request from 2021! (#7).
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.4.0...v2.5.0
Published by patrickdappollonio 21 days ago
A new feature and a fix to our recent release of _redirections
was updated in this release:
For those of you living in the edge and already using the _redirections
file, there was a bug that if a specific redirections file was crafted, some matches would incorrectly match an empty path. For example assume a URL called /docs/
with the following redirections file:
/docs/:foo /docs/:foo/overview permanent
This would incorrectly match a URL of http://example.com/docs
to be redirected to http://example.com/docs//overview
. We've added a test to ensure this case doesn't repeat again.
For some mission-critical sites, using http-server
truly is just a way to show your websites (HTML-made) to the world without leaking potentially important information while at it.
This release allows you to specify --disable-directory-listing
in any of the configuration forms and automatically return a HTTP 404 Not Found
response if you land on a directory that doesn't include an index. This will also play nicely with an upcoming feature to return a customized 404 page (and potentially returning 200 instead of 404 in those pages, to allow for SPAs to be rendered via http-server
).
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.3.0...v2.4.0
Published by github-actions[bot] about 1 month ago
I want to credit this release to @muse-sisay for proposing the idea of a redirections system and an early stage discussion of what the feature would look like if implemented. Thank you!
Published by github-actions[bot] about 2 months ago
This release fixes a longstanding bug with headers and etags. In a future version, I'm planning to use a file-based approach for etag matching so the middleware writes temporarily to it then it's read after to generate the actual response.
Please report any issues you might see.
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.1.4...v2.1.5
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 3 years ago
0704756 Add CORS header support. (#9)
477b8f4 Add support for custom content types. (#8)
6fcca2f Update README.md
a67f882 Update README.md
ac4dba7 Update actions/checkout action to v2.4.0 (#6)
docker pull ghcr.io/patrickdappollonio/docker-http-server:v1.0.2
Published by github-actions[bot] almost 3 years ago
5fbcd97 Add downloads badge to README.md
525fc95 Move from Docker Hub to Github Container Registry. (#5)
3448b0e Update LICENSE
docker pull ghcr.io/patrickdappollonio/docker-http-server:v1.0.1
Published by github-actions[bot] about 3 years ago
1c2a99d Add improvements. Add support for basic auth. Improve middleware chain.
19580bc Add renovate.json
d9b794e Fix incorrect log printf statement.
0c3f143 Improve index.html
f833752 Merge pull request #2 from patrickdappollonio/renovate/configure
3ced332 Merge pull request #4 from patrickdappollonio/improvements
2f14b59 Remove dependabot.
115b865 Update Dockerfile and GoReleaser settings.
921cb20 Update README.
5ed7a4d Upload generated template.
docker pull patrickdappollonio/docker-http-server:v1.0.0
Published by patrickdappollonio over 6 years ago