wala-rust

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

README.md (955B)


      1 ---
      2 title: Wala
      3 ---
      4 
      5 HTTP service that makes uploaded content available at the path of its
      6 digests(s)
      7 
      8 Currently only `SHA256` is supported.
      9 
     10 <div class="caution">
     11 
     12 Wala is not intended to be used by itself in a production environment.
     13 Please consider setting a reverse proxy in front of it.
     14 
     15 </div>
     16 
     17 # Build
     18 
     19 Rustup example:
     20 
     21 `rustup run 1.67 cargo build -v --bin wala --all-features --release`
     22 
     23 # Running
     24 
     25 `./target/release/wala -d <storage_directory>`
     26 
     27 Logging output detail can be adjusted by setting environment variable
     28 RUST_LOG to debug, info, warn or error.
     29 
     30 `./target/release/wala --help` for more options.
     31 
     32 <div class="formalpara-title">
     33 
     34 **Example interaction**
     35 
     36 </div>
     37 
     38 ``` bash
     39 curl -X PUT http://localhost:8000 --data "foo"
     40 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
     41 curl -X GET http://localhost:8000/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
     42 foo
     43 ```
     44 
     45 # Known issues
     46 
     47 `wala_send` is broken `:'(`