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.
docker build -t deltablot/nginx-share .
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}