http-server

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

Stars
76
Committers
6

Bot releases are visible (Hide)

http-server - v2.5.1

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.

What's Changed

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.5.0...v2.5.1

http-server - v2.5.0

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).

What's Changed

New Contributors

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.4.0...v2.5.0

http-server - v2.4.0

Published by patrickdappollonio 21 days ago

A new feature and a fix to our recent release of _redirections was updated in this release:

Redirecting on empty paths

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.

Preventing directory listing

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).

What's Changed

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.3.0...v2.4.0

http-server - v2.3.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!

Changelog

Fixes, improvements and updates

  • 4738af3809377ccd9508ce123133a82eb62e86d4 Add link to redirections from docs collection page. (#119)
  • 868cc51a0f35b0f7ed76f65174f448f9c026ae7d Add support for redirections (#118)
  • af68a0b5da2dc77bd0df3fc3d0e9befd698f2cbc Bump github.com/klauspost/compress from 1.17.9 to 1.17.10 (#117)
http-server - v2.2.0

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.

Changelog

Fixes, improvements and updates

  • 0dcbc25ae4b6a0437e74e332bb3b46d05c740b61 Add ARM builds. (#113)
  • 5e90755fc27e669b7424b0dadbc92920a4ad4951 Fix ETag header generation and resource utilization. (#114)
  • 80bf87b7d0f1b6d9329f99e810b85681ed5fa848 Fix etag hijacking. (#115)
http-server - v2.1.5 Latest Release

Published by patrickdappollonio about 2 months ago

What's Changed

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.1.4...v2.1.5

http-server - v2.1.4

Published by github-actions[bot] 9 months ago

Changelog

Fixes, improvements and updates

  • 429f5cf Bump actions/setup-go from 4 to 5 (#81)
  • 675dda8 Bump actions/stale from 8 to 9 (#82)
  • 2aeed89 Bump github.com/go-chi/chi/v5 from 5.0.10 to 5.0.11 (#85)
  • 69647c1 Bump github.com/go-playground/validator/v10 from 10.15.5 to 10.16.0 (#75)
  • a075629 Bump github.com/go-playground/validator/v10 from 10.16.0 to 10.17.0 (#88)
  • ca98b91 Bump github.com/klauspost/compress from 1.17.0 to 1.17.1 (#71)
  • 04d54b2 Bump github.com/klauspost/compress from 1.17.1 to 1.17.3 (#77)
  • a9dbda9 Bump github.com/klauspost/compress from 1.17.3 to 1.17.4 (#79)
  • f8f1578 Bump github.com/klauspost/compress from 1.17.4 to 1.17.5 (#89)
  • 17f7ef0 Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#76)
  • eef0e53 Bump github.com/spf13/viper from 1.17.0 to 1.18.2 (#84)
  • 51dece7 Bump github.com/yuin/goldmark from 1.5.6 to 1.6.0 (#73)
  • edb7f42 Bump go.abhg.dev/goldmark/mermaid from 0.4.0 to 0.5.0 (#74)
  • 75899b2 Bump golang.org/x/net from 0.15.0 to 0.17.0 (#78)
  • 70a25e7 Bumps crypto version to 0.17. (#87)
  • 9cfde1b Update .goreleaser.yml
http-server - v2.1.3

Published by github-actions[bot] about 1 year ago

Changelog

  • 01ff93f Bump actions/checkout from 3 to 4 (#61)
  • a3aac32 Bump actions/setup-go from 3 to 4 (#38)
  • a7ab9ed Bump actions/stale from 7 to 8 (#37)
  • db43b4c Bump docker/login-action from 2 to 3 (#65)
  • f0a5727 Bump github.com/go-chi/chi/v5 from 5.0.8 to 5.0.10 (#54)
  • 253f0e4 Bump github.com/go-playground/validator/v10 from 10.12.0 to 10.13.0 (#46)
  • 47e106f Bump github.com/go-playground/validator/v10 from 10.13.0 to 10.14.0 (#47)
  • 5d9b8e7 Bump github.com/go-playground/validator/v10 from 10.14.0 to 10.14.1 (#50)
  • dc1b80d Bump github.com/go-playground/validator/v10 from 10.14.1 to 10.15.4 (#62)
  • 4223232 Bump github.com/go-playground/validator/v10 from 10.15.4 to 10.15.5 (#68)
  • 0f841e8 Bump github.com/klauspost/compress from 1.16.4 to 1.16.5 (#45)
  • b8aea62 Bump github.com/klauspost/compress from 1.16.5 to 1.16.6 (#51)
  • 1240243 Bump github.com/klauspost/compress from 1.16.6 to 1.16.7 (#53)
  • 94d64bf Bump github.com/klauspost/compress from 1.16.7 to 1.17.0 (#66)
  • 3bdc875 Bump github.com/spf13/viper from 1.15.0 to 1.16.0 (#49)
  • 9a8feb1 Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#69)
  • a312873 Bump github.com/yuin/goldmark from 1.5.4 to 1.5.5 (#55)
  • 0021811 Bump github.com/yuin/goldmark from 1.5.5 to 1.5.6 (#57)
  • 7e05803 Bump goreleaser/goreleaser-action from 4 to 5 (#64)
  • e961130 Bump to Go 1.21.3 (#70)
  • 65ac50d Configure dependabot instead of Renovate (#36)
  • 0e22756 Update Dockerfile: swap order of operations to prevent buildkit's bug (#67)
  • 8d7b0f5 Update major dependencies, improve etag, add gzip compression. (#44)
http-server - v2.1.2

Published by github-actions[bot] over 1 year ago

Changelog

  • 098ad5c Fix clean goreleaser. (#33)
  • 1fb2d56 Fixes ETag header generation and status code handling. (#35)
http-server - v2.1.1

Published by github-actions[bot] over 1 year ago

Changelog

  • e5fa39d Add support for Etag header. (#32)
http-server - v2.1.0

Published by github-actions[bot] over 1 year ago

Changelog

  • 29077a3 Improve dockerfile to not run as root. (#31)
  • e6547ab Update README.md
http-server - v2.0.3

Published by github-actions[bot] almost 2 years ago

Changelog

  • bab646a Improve markdown rendering, improve documentation (#30)
http-server - v2.0.2

Published by github-actions[bot] almost 2 years ago

Changelog

  • a5f7956 Add support for markdown banner. (#28)
  • f4fe062 Fix goreleaser deprecation notice. (#27)
  • 417510f Stale issues support (#29)
http-server - v2.0.1

Published by github-actions[bot] almost 2 years ago

Changelog

  • f4b28f2 Add meta generator. Fixes HEAD requests. Add healthcheck. (#26)
  • 18846eb Update README.md
http-server - v2.0.0

Published by github-actions[bot] almost 2 years ago

Changelog

  • e763ee1 http-server revamp (#22)
http-server - v1.0.3

Published by github-actions[bot] almost 2 years ago

Changelog

  • 75e0da3 Add download link (#18)
  • c207646 Update actions/checkout action (#11)
  • f849555 Update actions/checkout action to v3.1.0 (#15)
  • d657721 Update actions/setup-go action to v3 (#12)
  • 94a28bc Update docker/login-action action to v2 (#16)
  • 8659182 Update goreleaser/goreleaser-action action to v3 (#17)
  • 791703a Update module go to 1.19 (#19)
  • 9aeccf2 Update module golang.org/x/net to v0.1.0 (#21)
http-server - v1.0.2

Published by github-actions[bot] almost 3 years ago

Changelog

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 images

  • docker pull ghcr.io/patrickdappollonio/docker-http-server:v1.0.2
http-server - v1.0.1

Published by github-actions[bot] almost 3 years ago

Changelog

5fbcd97 Add downloads badge to README.md
525fc95 Move from Docker Hub to Github Container Registry. (#5)
3448b0e Update LICENSE

Docker images

  • docker pull ghcr.io/patrickdappollonio/docker-http-server:v1.0.1
http-server - v1.0.0

Published by github-actions[bot] about 3 years ago

Changelog

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 images

  • docker pull patrickdappollonio/docker-http-server:v1.0.0
http-server - https://github.com/patrickdappollonio/http-server/releases/tag/0.0.4

Published by patrickdappollonio over 6 years ago