E Z P Z file sharing https://hardfiles.org/
Go to file
2023-10-04 01:29:26 +00:00
www Update site descriptoin 2023-10-01 12:56:53 +00:00
.dockerignore Add Docker support 2023-10-04 01:29:26 +00:00
.gitignore Add .gitignore 2023-10-04 01:25:10 +00:00
config.toml initial 2023-09-30 18:06:22 -05:00
docker-compose.yml Add Docker support 2023-10-04 01:29:26 +00:00
Dockerfile Add Docker support 2023-10-04 01:29:26 +00:00
go.mod initial 2023-09-30 18:06:22 -05:00
go.sum initial 2023-09-30 18:06:22 -05:00
main.go initial 2023-09-30 18:06:22 -05:00
README.md Enterprise README Unlocked 2023-10-01 13:43:15 -04:00

HARDFILES

In today's digital landscape, the majority of image and file-sharing platforms are overburdened with bloatware, inundated with trackers, and riddled with restrictive usage limits. Moreover, they often cram unnecessary features, leaving users longing for a straightforward and secure file-sharing experience...

We designed HardFiles with a singular vision: to simplify and secure the process of file sharing. No fluff, no unnecessary features — just a streamlined, user-centric platform. What's more, we believe in transparency and community involvement, which is why HardFiles is open-source. Explore our service and contribute to its development at https://hardfiles.org now!

🚫 No JavaScript required to upload files! 🚫

🛑 No logs 📜, no tracking 👣, & no analytics! 📊🚫

🔒 All uploads are shredded securely ✂️🔥 after 24 hours 🗑️

Terms of Service

This platform serves as a public file hosting service. It is not actively monitored or overseen for specific content. Users are solely responsible for the content they upload and share. The administrator and owner of this server explicitly disclaim any responsibility for the content hosted and shared by users. Furthermore, the administrator is not liable for any damages, losses, or repercussions, either direct or indirect, resulting from the use of this service or the content found therein. Users are urged to use this service responsibly and ethically.

HardFiles is built on the principle of flexibility. If you choose to run your own instance of our service, you have the autonomy to define your own set of rules tailored to your community or organizational needs. However, when using our official service at hardfiles.org, we maintain a minimalistic approach to rules. Our singular, non-negotiable rule is a strict prohibition against child pornography. We are committed to creating a safe environment for all users, and we have zero tolerance for any content that exploits the vulnerable.

Deployment Guide for HardFiles

1. Configuration:

Start by adjusting the necessary configuration variables in main.go.

2. Build and Run:

Execute the following commands to build and initiate HardFiles:

go build -o hardfiles main.go
mkdir files
./hardfiles

3. Default Port:

By default, HardFiles listens on port 5000. For production environments, it's recommended to use a robust web server like Nginx or Apache to proxy traffic to this port.

Using Nginx as a Reverse Proxy:

A reverse proxy takes requests from the Internet and forwards them to servers in an internal network. By doing so, it ensures that the actual application (in this case, HardFiles) doesn't need to run with root privileges or directly face the Internet, which is a security best practice.

Here's a basic setup for Nginx:

server {
    listen 80;
    server_name your_domain.com;

    location / {
        proxy_pass http://localhost:5000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }

    listen 443 ssl;
    ssl_certificate /etc/letsencrypt/live/your_domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/your_domain.com/privkey.pem;
}

Replace your_domain.com with your actual domain name. Save this configuration to a file, say hardfiles.conf, inside the /etc/nginx/sites-available/ directory, and then create a symbolic link to /etc/nginx/sites-enabled/. Restart Nginx after this setup.

For obtaining the Let's Encrypt certificates, you can use tools like certbot that automatically handle the certification process for you.

Remember, by using a reverse proxy, you can run HardFiles without needing root privileges and maintain a more secure environment.

cURL Uploads & Bash Alias

If you frequently upload files to HardFiles via the command line, you can streamline the process by setting up a bash alias. This allows you to use a simple command, like upload, to push your files to HardFiles using curl.

Setting Up:

  1. Edit your .bashrc file: Open your ~/.bashrc file in a text editor. You can use nano or vim for this purpose:
nano ~/.bashrc
  1. Add the upload function: At the end of the .bashrc file, append the following function (replace the domain if you are running your own instance):
upload() {
    curl -F file=@$1 https://hardfiles.org/
}
  1. Reload your .bashrc file: To make the new function available in your current session, reload your .bashrc:
source ~/.bashrc

Usage:

Now, you can easily upload files to HardFiles using the upload command followed by the path to your file. For example:

upload /path/to/your/file.jpg

This will upload the specified file to HardFiles and return a direct link to the file.

Roadmap

  • Idea - Uploads stored on a remotely mounted drive, isolating them from the actual service server. Multiple mirrored instances behind a round robin reading from the same remote mount for scaling.
  • Random wallpapers as an optional extra, kept simple without javascript. Maybe a local shell script that modifies the index.html on a timer.
  • Fix index wallpaper alignment on smartphones.
  • Clean up CSS.
  • Warrant Canary
  • Footer or some link to SupernNETs & this repository & terms of service txt.
  • Tor & i2p support services (This can quite possibly be a very bad idea to operate. Maybe a captcha for .onion/.i2p uploads only...)

Credits

  • 🚀 delorean, our Senior Director of IRC Diplomacy & SuperNets Brand Strategy 🌐 for developing hardfiles.
  • 🤝 hgw7, our Principal Designer of Digital Aquariums & Rare Fish Showcases 🐠 for branding the product.
  • 💼 acidvegas, our Global Director of IRC Communications 💬 for funding the project 💰.

Mirrors

acid.vegasGitHubGitLabSuperNETs