wala-rust

Content-adressed HTTP file server
Info | Log | Files | Refs | README | LICENSE

README.txt (1176B)


      1 Wala
      2 
      3 
      4 HTTP service that makes uploaded content available at the path of its
      5 digests(s)
      6 
      7 Currently only SHA256 is supported.
      8 
      9 Wala is not intended to be used by itself in a production environment.
     10 Please consider setting a reverse proxy in front of it.
     11 
     12 Install
     13 
     14 defalsify.org hosts a pre-assembled crate for wala.
     15 
     16 To install, first addthe defalsify registry to .cargo/config.toml:
     17 
     18     [registries]
     19     ...
     20     defalsify = { index = "sparse+https://defalsify.org/pub/rust/" }
     21 
     22 Then install with this command:
     23 
     24 cargo install --registry defalsify --all-features --release
     25 
     26 Build
     27 
     28 To build from source:
     29 
     30 rustup run 1.67 cargo build -v --bin wala --all-features --release
     31 
     32 Running
     33 
     34 ./target/release/wala -d <storage_directory>
     35 
     36 Logging output detail can be adjusted by setting environment variable
     37 RUST_LOG to debug, info, warn or error.
     38 
     39 ./target/release/wala --help for more options.
     40 
     41 Example interaction
     42 
     43     curl -X PUT http://localhost:8000 --data "foo"
     44     2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
     45     curl -X GET http://localhost:8000/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
     46     foo
     47 
     48 Known issues
     49 
     50 wala_send is broken :'(