mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
18 lines
408 B
Markdown
18 lines
408 B
Markdown
# 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]/`)
|
|
|