2017-11-09 11:52:05 +00:00
|
|
|
|
2018-10-26 13:27:54 +00:00
|
|
|
Setup
|
|
|
|
===
|
2017-11-09 11:52:05 +00:00
|
|
|
|
2018-10-26 13:27:54 +00:00
|
|
|
* Nginx
|
|
|
|
* php-fpm
|
|
|
|
* php-redis
|
|
|
|
* php-curl
|
2018-11-19 17:22:14 +00:00
|
|
|
* php-gmp
|
2018-10-26 13:27:54 +00:00
|
|
|
* Redis
|
|
|
|
|
|
|
|
Nginx handler
|
|
|
|
====
|
2017-11-09 11:52:05 +00:00
|
|
|
```
|
2018-11-19 17:22:14 +00:00
|
|
|
location ~* "^\/([0-9a-z]{27})$" {
|
|
|
|
try_files $uri /src/php/handler.php?h=download&id=$1;
|
2017-11-09 07:56:02 +00:00
|
|
|
}
|
2018-07-08 08:55:57 +00:00
|
|
|
```
|
|
|
|
|
2018-10-26 13:27:54 +00:00
|
|
|
Void Binary File Format (VBF)
|
|
|
|
===
|
|
|
|
| Name | Type | Description |
|
|
|
|
|---|---|---|
|
|
|
|
| version | uint8_t | Binary file format version |
|
2018-11-19 17:22:14 +00:00
|
|
|
| hash | SHA256 hash | The hash of the unencrypted file |
|
|
|
|
| uploaded | uint32_t | Timestamp of when the upload started |
|
2018-10-26 13:27:54 +00:00
|
|
|
| payload | >EOF | The encrypted payload |
|
2018-07-30 07:37:18 +00:00
|
|
|
|
2018-10-26 13:27:54 +00:00
|
|
|
---
|
|
|
|
VBF Payload Format
|
|
|
|
|
|
|
|
| Name | Type | Description |
|
|
|
|
|---|---|---|
|
|
|
|
| header_length | uint16_t | Length of the header section |
|
|
|
|
| header | string | The header json |
|
|
|
|
| file | >EOF | The file |
|