Add demo server for http upload feature

This commit is contained in:
Franz Heinzmann (Frando)
2020-06-09 23:58:44 +02:00
parent b0330f5c0a
commit 060492afe8
4 changed files with 86 additions and 0 deletions

17
upload-server/README.md Normal file
View File

@@ -0,0 +1,17 @@
# deltachat-upload-server
Demo server for the HTTP file upload feature.
### Usage
```
npm install
node server.js
```
Configure with environment variables:
* `UPLOAD_PATH`: Path to upload files to (default: `./uploads`)
* `PORT`: Port to listen on (default: `8080`)
* `HOSTNAME`: Hostname to listen on (default: `0.0.0.0`)
* `BASEURL`: Base URL for generated links (default: `http://[hostname]:[port]/`)