Commit Graph

12 Commits

Author SHA1 Message Date
Cameron Cordes
b0a9cd6327 Update Actix, tokio and hashing libraries
All checks were successful
Core Repos/ImageApi/pipeline/head This commit looks good
2021-02-15 20:39:14 -05:00
Cameron Cordes
11d1e9600a Use an Actor for the Stream watching
All checks were successful
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-11 20:39:07 -05:00
Cameron Cordes
f20a8a5842 Update dependencies, disable registration and improve path handling 2021-02-02 13:57:51 -05:00
Cameron Cordes
eccb45ced0 Use Absolutize for files that do not exist
Canonicalize relies on the file existing to resolve the potential
traversal, which won't work for file upload in case the file name has a
traversal inside it.
2020-10-17 19:22:55 -04:00
Cameron Cordes
2343351a4d Add file watcher to re-generate thumbnails
Previously files added while the server is running would not have
thumbnails until after the server was restarted. Now we watch the
BASE_PATH for added/renamed files in order to re-gen the thumbnail.
2020-09-13 21:36:34 -04:00
Cameron Cordes
426c695b47 File upload working 2020-09-13 21:34:08 -04:00
Cameron Cordes
fe23586059 Update to Actix 3.0 2020-09-11 16:12:41 -04:00
Cameron Cordes
7d369aab5c Generate thumbnails before API starts up
Clients can now request a thumbnail by specifying a size on the image
request.
2020-07-15 12:06:50 -04:00
Cameron Cordes
536300e0a1 Serving files is working
Right now we're not doing any streaming and this isn't ideal. I'll need
to figure it out at some point.
2020-07-08 21:38:21 -04:00
Cameron Cordes
e3bb607d95 Fix token parsing and require Auth for list files 2020-07-07 22:37:20 -04:00
Cameron Cordes
2aa1b61429 Move database into the main app
I was having issues including the lib as a crate, its fine just being a
module for now.
2020-07-07 21:48:29 -04:00
Cameron Cordes
36f7351627 Initial API setup
Right now we are just listing files in a given subdirectory with not
authentication.
2020-07-07 19:53:12 -04:00