Commit graph

10 commits

Author SHA1 Message Date
d8e001922a fup: don't crash on view if we don't have a cheddar
Classic Go typed-nil bug.
2021-03-26 21:44:13 +00:00
affe252f73 fup: fix config file handling
Whoops! Before, config files were being read but all the contents were basically
being discarded.

Now, we both load and actually use the config file, leading to a much more positive
experience for everyone involved :)
2021-03-23 01:21:39 +00:00
dbd711ded8 fup: add TokenAuthMiddleware
This is an example middleware which can be used as an AuthMiddleware for only
allowing requests to non-view pages which are accompanied by an auth token via
HTTP basic auth.
2021-03-23 00:46:33 +00:00
d96cf3d34d fup/cmd/serve: add viper bindings for all the flags 2021-03-23 00:45:51 +00:00
a9a437cee4 fup: add systemd socket activation support to fup serve 2021-03-22 02:41:59 +00:00
b7cd0d0e29 fup: add cheddar as a syntax highlighter 2021-03-21 18:52:22 +00:00
2306915e2c fup: implement file uploads!
TODO: tests for this.
2021-03-21 18:04:37 +00:00
08098fb666 fup: add file serving
This adds both redirect-to-signed-URL and proxy fileserving.

The proxy fileserving is somewhat limited: we don't support the Range header,
and it isn't easy to reuse the net/http ServeContent implementation because
that requires a SeekCloser. I think it might be possible to "bodge" a
SeekCloser on top of dynamically opening files, but it'll be a bit wonky and
will be slower than strictly necessary.
2021-03-21 03:04:38 +00:00
a261baedf4 fup: add SPDX headers 2021-03-20 20:40:40 +00:00
bcd39fae10 fup: create serve subcommand and fuphttp package
This is the skeleton of the application. Let's goooo!
2021-03-20 19:53:43 +00:00