small HTTP upload and download service
1.4K
For hosting your own tiny-link instance you only need docker installed. Here you find a short documentation how to install docker.
for having the shorted links, also after a restart available we mount the path where the links are saved to our local file system(with -v ).
docker run -d --restart unless-stopped -p 8111:8080 -v /data/store-service/:/store/ 12abcloud/store-service
curl --upload-file /var/log/syslog http://localhost:8111/syslog
http://localhost:8111/syslog
Environment variables can get set with the -e parameter, like docker run -e DEFAULT_STORE_DUR=7d 12abcloud/store-service
| Variable | Description | Default |
|---|---|---|
| DEBUG | activate the debug logging | false |
| STORE_PATH | path where the files are getting stored | /store |
| HTTP_PATH | URL path for the http api | / |
| HTTP_PROTO | protocoll to use for the return string | http |
| DEFAULT_STORE_DUR | default store time (m, h) | 24h |
| ENCRYPT | encrypt stored files on disk | false |
use the following commands to upload files:
# create
curl --upload-file 50MB.zip http://localhost:8111/50MB.zip
# create
curl -H 'X-valid: 400h' --upload-file 50MB.zip http://localhost:8111/50MB.zip
# create
curl -u 'USERNAME :PASSWORD ' --upload-file 50MB.zip http://localhost:8111/50MB.zip
# get
wget --http-user=USERNAME --http-password=PASSWORD http://localhost:8111/50MB.zip
curl -H 'onetime: true' --upload-file 50MB.zip http://localhost:8111/50MB.zip
Content type
Image
Digest
Size
11.8 MB
Last updated
almost 7 years ago
docker pull 12abcloud/store-service