share files from your local server with a signed url
879
linkshare is a docker native tool to share files from your local server with a signed url.
It is useful when you want to share your file to people in the same network but don't want to give them full access to the server, and don't want to setup NFS/Samba permissions.
The idea is:
The recommended way to deploy this is via docker
docker run --name linkshare -d -e LINKSHARE_BASE_URI=<your_base_url> -v <host path>:/share/<targetname> -e LINKSHARE_KEY=<your_key> -p 25601:8000 wsmlby/linkshare:latest
Or compose.yml
version: "3.8"
services:
linkshare:
image: wsmlby/linkshare:latest
container_name: linkshare
environment:
- LINKSHARE_BASE_URI=<your_base_url>
- LINKSHARE_KEY=<your_key>
ports:
- "25601:8000"
volumes:
- <host path1>:/share/<targetname1>
- <host path2>:/share/<targetname2>
first, go inside the running docker instance
docker exec -it linkshare /bin/bash
then you can share a file with
./linkshare.py share /share/<the file you want to share> [expiration_in_secs]
The expiration_in_secs is optional, example:
root@a1a9749335db:/app# ./linkshare.py share /share/media/media1/Movie/BigBig.mp4 300
Sharing /share/media/media1/Movie/BigBig.mp4
https://share.example.net/media/media1/Movie/BigBig.mkv?sig=3325b61b9164614d9563de3377ed20f707b540366f74e7b52f9&exp=1740037513
Content type
Image
Digest
sha256:ab3049454…
Size
43.3 MB
Last updated
over 1 year ago
docker pull wsmlby/linkshare