Skip to content

A simple file hosting service written in Go.

License

Notifications You must be signed in to change notification settings

chanbakjsd/filehost

Repository files navigation

Simple File Hosting

License: MIT Report Badge

This is designed to be a simple Go server that just hosts files and does URL shortening. Use at your own risk.

Usage

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.

Use in Docker

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

Defaults

  • 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.

Credits

Inspired by 0x0 and Better Motherf**king Website.

License

This project is licensed under MIT.

About

A simple file hosting service written in Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published