From c04c66c637fbad1aa083595e7949bdfbba40780d Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 17 Jul 2022 18:22:25 +0200 Subject: feat(users/Profpatsch/cas-serve): init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A dumb little daemon that stores arbitrary files by content-hash, and exposes a randomly generated URL by which the file can be fetched again. If the same file is uploaded twice, it will only be stored once. CAS hashes are not exposed to the user, so they can’t figure out whether a file they know is in the database. Change-Id: Ie57bc09d429a9f31c8f0fc5f63f78d6a84d650f7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5952 Tested-by: BuildkiteCI Reviewed-by: Profpatsch --- users/Profpatsch/cas-serve/cas-serve.cabal | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 users/Profpatsch/cas-serve/cas-serve.cabal (limited to 'users/Profpatsch/cas-serve/cas-serve.cabal') diff --git a/users/Profpatsch/cas-serve/cas-serve.cabal b/users/Profpatsch/cas-serve/cas-serve.cabal new file mode 100644 index 0000000000..8740e8737d --- /dev/null +++ b/users/Profpatsch/cas-serve/cas-serve.cabal @@ -0,0 +1,24 @@ +cabal-version: 2.4 +name: cas-serve +version: 0.1.0.0 +author: Profpatsch +maintainer: mail@profpatsch.de + +executable cas-serve + main-is: CasServe.hs + + build-depends: + base ^>=4.15.1.0, + text, + sqlite-simple, + http-types, + wai, + warp, + mtl, + my-prelude, + bytestring, + memory, + cryptonite, + superrecord + + default-language: Haskell2010 -- cgit 1.4.1