Free file hosting website
Go to file
2018-10-26 21:27:54 +08:00
src checkpoint - downloads 2018-10-26 21:27:54 +08:00
utils track stats with matomo 2018-09-27 19:19:59 +08:00
.gitignore update upload logic 2018-10-23 00:48:11 +08:00
build.bat rewrite init 2018-10-13 01:48:29 +08:00
favicon.ico block crawl bots from counting views 2017-11-17 15:34:29 +08:00
index.html checkpoint - downloads 2018-10-26 21:27:54 +08:00
README.md checkpoint - downloads 2018-10-26 21:27:54 +08:00

Setup

  • Nginx
  • php-fpm
  • php-redis
  • php-curl
  • Redis

Nginx handler

location ~ "^\/([0-9a-z\.]{36,40})$" {
	try_files $uri /src/php/handler.php?h=download&hash=$1;
}

Void Binary File Format (VBF)

Name Type Description
version uint8_t Binary file format version
hash 32 byte hash The hash of the unencrypted file
payload >EOF The encrypted payload

VBF Payload Format

Name Type Description
header_length uint16_t Length of the header section
header string The header json
file >EOF The file