filehost

command module
v0.0.0-...-ac907e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 17 Imported by: 0

README

Simple File Hosting

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL