https://github.com/unnamed/mango-service
A public, ephemeral, unique-per-ip and single-download file storage microservice
https://github.com/unnamed/mango-service
go microservice
Last synced: 9 months ago
JSON representation
A public, ephemeral, unique-per-ip and single-download file storage microservice
- Host: GitHub
- URL: https://github.com/unnamed/mango-service
- Owner: unnamed
- License: mit
- Created: 2023-09-09T06:20:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-16T01:40:37.000Z (over 2 years ago)
- Last Synced: 2025-05-20T01:42:03.650Z (11 months ago)
- Topics: go, microservice
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# mango-service
A simple file storage service, files in the mango-service are temporal, limited and
can be downloaded only once. There is also a limit of a single file per IP address.
### Usage
To build `mango-service`, just use `./go build`. Then use the built executable:
```bash
./mango-service --port=2069 --dir=data
```
The executable accepts multiple flags
| Option | Default Value | Description |
|---------------|------------------------|---------------------------------------------------------------------------------------------------------------------------|
| `port` | `2069` | The HTTP server port |
| `dir` | `data` | The directory that will contain the stored files |
| `size-limit` | `5000000` *(5 MB)* | The file size limit (in bytes) |
| `lifetime` | `300000` *(5 minutes)* | The file lifetime (in milliseconds) |
| `trust-proxy` | `false` | Determines whether we should trust the `X-Forwarded-For` HTTP Header, enable if running behind a reverse-proxy like Nginx |