This is designed to be a simple Go server that just hosts files and does URL shortening. Use at your own risk.
Modify the values in const.go
and go build .
it.
Consider replacing [this_domain]
in static/index.html
with your domain as well.
You are recommended to keep this behind a reverse proxy that adds HTTPS.
Modify the values in const.go
and change the port in Dockerfile
if it's not the default.
After that, run docker build --tag filehost:0.0 .
, changing filehost
(Docker image name)
and 0.0
(Docker image version) as necessary.
To run it, simply use the image you've built. A sample command would be:
docker run --publish 80:80 -v filehost:/app/hosted -d filehost:0.0
- The server listens to
http://localhost:80
. - Files are deleted once per minute to keep it under 5GB.
- No authentication required.
- Maximum file size of 100MB.
- 5 requests/IP/min.
- 5 MB/IP/min.
Inspired by 0x0 and Better Motherf**king Website.
This project is licensed under MIT.