gosherve

A simple HTTP file server with some basic URL shortening/redirect functionality

MIT License

Stars
2

Bot releases are visible (Hide)

gosherve - v0.3.3 Latest Release

Published by github-actions[bot] 2 months ago

Changelog

  • 72618c30800dbc9954b028380543f0f860da87cf: fix: use w.Write over http.ServeContent to avoid double setting header (@jnsgruk)

Thanks!

That's all the changes for v0.3.3!

gosherve - v0.3.2

Published by github-actions[bot] 3 months ago

Changelog

  • b2839ca74de32f8dcb64645dc55bfe14d71a816a: ci: update goreleaser args for new version (@jnsgruk)
  • 6e70a316be44ff97eb45ec95b0827613b215768e: fix: trim both suffix and prefix from path when looking up redirects (@jnsgruk)

Thanks!

That's all the changes for v0.3.2!

gosherve - v0.3.1

Published by github-actions[bot] 5 months ago

Changelog

  • 9a82fdd6e1bb6643990089c760ddac12cc48b54a: build: update nix vendor hash (@jnsgruk)
  • a45de12d9350d783abaf785829c2e3063ecbd11e: chore: update go dependencies (@jnsgruk)
  • 21a175caf00da41e58aaf78b7e439b00d22f7fce: fix: serve correct mime type on rich 404s (@jnsgruk)

Thanks!

That's all the changes for v0.3.1!

gosherve - 0.3.0

Published by github-actions[bot] 8 months ago

Changelog

  • 395c6150b315fc52d4ae358148512f61cb7b817e: build(deps): bump actions/setup-go from 4 to 5 (#2) (@dependabot[bot])
  • eaa3fd447a4b75c7a303f97daf35882ebc8a59fb: build(deps): bump actions/upload-artifact from 3 to 4 (#3) (@dependabot[bot])
  • d00a9deff796d4589be6657b7e727c2c9dec117d: build: add nix flake (@jnsgruk)
  • 0b82a76f85c64feec6319395ea67159d12d6330a: feat: enable caching of files served with Cache-Control and ETag (@jnsgruk)
  • 14cd95cd33d166d8dd2254bc675738d6575fced9: feat: remove formatter pack (@jnsgruk)
  • 9d5e77c67031a944d5193ad37308d08ac82b13e4: refactor: move server/logging packages from internal -> pkg (@jnsgruk)
  • 81ebfd9224e752c191745885cd50f51d59368e36: refactor: simplification of routeHandler logic (@jnsgruk)
  • 3f81dd97cdd7c60bf4028443aa7fd743c451425f: refactor: use fs.FS as webroot rather than path (string) (@jnsgruk)

Thanks!

That's all the changes for 0.3.0!

gosherve - 0.2.3

Published by github-actions[bot] 12 months ago

Changelog

  • 2f015854a8412745a47288abe493e73258e43de9: feat: use underscore in "user_agent" field in log lines (@jnsgruk)

Thanks!

That's all the changes for 0.2.3!

gosherve - 0.2.2

Published by github-actions[bot] 12 months ago

Changelog

  • 1db44ee5ea2aba31cca3b3d210749b3cc7b87214: feat: add user agent to the request group in logger (@jnsgruk)

Thanks!

That's all the changes for 0.2.2!

gosherve - 0.2.1

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

Changelog

  • 27fcf1ddc5e7ede33dd9e7183904ceddcd2e7984: chore: go mody tidy (@jnsgruk)
  • 41f272d54c2f57744c090af927a1e57551e21d97: ci: run unit tests in workflows (@jnsgruk)
  • e539b9d3eea4cbdde3e50031c97a9d6a901abd2b: fix: ensure the prometheus handler is associated with the registry (@jnsgruk)

Thanks!

That's all the changes for 0.2.1!

gosherve - 0.2.0

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

Changelog

  • 4b9a0dcf1a4fb144b1d11751f9d09880d400ee1b: build: switch to goreleaser for build and release (@jnsgruk)
  • b2f0b4bf57b13c24af8d050832c5b38137eb97b8: chore: update to go 1.21; ioutil -> io (@jnsgruk)
  • 1e833e231bb4427305f62297d4953ded7898780b: ci: fix release workflow to actually release, not just build (@jnsgruk)
  • d5007f6e29605be7e4af75bd9507f7d2fe76357e: ci: overhaul CI to be triggered by Github release (@jnsgruk)
  • cf6686803b7f118a218ef88d379c828bb08ddf98: ci: s/master/main/g (@jnsgruk)
  • ff262dc6a080f2e66baf7e90a594e9f359a8a3fd: docs: add code comment for Server.NumRedirects (@jnsgruk)
  • 9f60afc9ecec5ff1cffe9c1ae61799e6482b4c21: docs: ensure comments are up to date following refactor (@jnsgruk)
  • bd7b9c0b1d5f94562a78d7fb22609500fb62fe51: docs: fix env var names in README (@jnsgruk)
  • 8c44715e64af6595ade6392a74a14d569915c416: docs: fix typos in comments/log messages (@jnsgruk)
  • 8247a082c2fe6c267eaf01cae9911b16748ba2bb: docs: tidy up noisy comments (@jnsgruk)
  • 0b67eef4b177b56779c0553f4629c4dd5f17f829: feat!: prepend env vars with GOSHERVE_ (@jnsgruk)
  • ecd2c60631fdc50308c7c0121fa6181bfd077870: feat: add a 'response_status' vector metric (@jnsgruk)
  • 1635c64ae1ee35e40510707a77b50b398c7e3476: feat: comprehensive logging uplift with level specification (@jnsgruk)
  • d174cbe2b5a83fca7ef9221c3ab00b234618ea2f: feat: replace zerolog with slog (@jnsgruk)
  • 1de335e22cee81a61a5e0fdb1aa5b8248bffd4e4: feat: start metrics server on different port in goroutine (@jnsgruk)
  • 48d3267a0a944de9d0f201a4d7a235df7eedfb7b: feat: use promauto and use default registry (@jnsgruk)
  • 7f6ac968cf0d6b3580e6b2c90885de56e969e6c6: fix: better logging for invalid redirect specs (@jnsgruk)
  • 6c298e11df42c0a90d3b2b1bfe2949f50ae3d77a: fix: exit if unable to hydrate redirect map (@jnsgruk)
  • 3906c427c728f3228293e6b3ea08c0c48bc89e2a: fix: improve error message when redirects update fails (@jnsgruk)
  • 61e54b48b6c1b4ae9891d84a6292fc279013489d: fix: safer logging strings avoiding user content (@jnsgruk)
  • a1b20e2a3e24e221d1721301292871522d79fbc9: fix: simplify logger setup (@jnsgruk)
  • dc06eb0562d6f57c7c78d86fba087504a1609ec9: refactor: major refactoring into multiple packages (@jnsgruk)
  • 8b760712e48792a733b3f4dfe90f6e0306a145c7: refactor: make fetchRedirects return a map (@jnsgruk)
  • a2f7cdb3c7c63deba9b73cbae26cd5cc96e31335: refactor: make the GosherveManager take config as arguments (@jnsgruk)
  • c1cc9265d306354a40f40e423f44ed5f2c0c33eb: refactor: remove main.go and use cmd/gosherve/main.go (@jnsgruk)
  • a6598d76c8bd96e9e892c2cd29af81cb91cf5d4e: refactor: remove viper from internal packages, pass log level from main (@jnsgruk)
  • f5475a8209f3a6e3f1802935ec35b5ecc1876072: refactor: rename GosherveManager -> Server; simplify metrics (@jnsgruk)
  • cb4cdb40dba30ea5c1558490356cc855f7c9b7b1: refactor: renaming of function local redirects variable (@jnsgruk)
  • 240fdfbc05717edbbac748eae9feed75ccf3ceb6: refactor: simplify metrics and route handling (@jnsgruk)
  • 761e7b361b425e1799e558067b790ae55dd15f61: refactor: simplify the main command declaration (@jnsgruk)
  • f37ad8d118a33dbbf6f0bbcfe19fb637d57d3525: refactor: use viper specified environment variables more consistently (@jnsgruk)
  • 5747a8a59f5009316a40883b351c988962f278e1: style: less nesting through early returns in handleNotFound (@jnsgruk)

Thanks!

That's all the changes for 0.2.0!

gosherve - 0.1.1

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

Features

Commits

  • e4bfccb: Updated the README (Jon Seager)
  • c466662: Updated the README (Jon Seager)
  • b18732c: Added a basic Dockerfile for the project (Jon Seager)
  • 7d08029: Updated the README to point at the Docker image (Jon Seager)
gosherve - 0.1.0

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