Skip to content

deltablot/nginx-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-share

When you need to share a huge file with someone and have to spawn a VPS to serve that file over HTTPS. This will create an nginx server that will serve files from a dir if the request URL contains a secret generated at runtime. The secret part is just to make sure no automated bot discovers the content.

Any other request will not see a reply from the server.

Build

docker build -t deltablot/nginx-share .

Run

The service runs on port 5555. You can expose it to any other port, of course.

# serve files from the current directory
docker run --rm -p 5555:5555 --name nginx-share -d -v ${PWD}:/usr/share/nginx/html deltablot/nginx-share

Then check the secret for the path:

docker logs nginx-share 2>/dev/null | grep Secret

You can then share the link: https://12.34.56.78:5555/{secret}/{filename}

About

A quick way to spawn a webserver able to serve large files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published