Giter Site home page Giter Site logo

bella654 / chibisafe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chibisafe/chibisafe

1.0 0.0 0.0 11.05 MB

Blazing fast file uploader and awesome bunker written in node! ๐Ÿš€

Home Page: https://chibisafe.moe

Shell 0.04% JavaScript 47.38% PowerShell 0.05% Vue 44.44% Dockerfile 0.25% SCSS 7.85%

chibisafe's Introduction

GitHub license Chat / Support Support me Support me

Attention

If you are upgrading from v3.x to v4.0.0 (lolisafe to chibisafe) and you want to keep your files and relations please read the migration guide. Keep in mind the migration is a best-effort script and it's recommended to start from scratch. That being said the migration does work but it's up to you to make a backup beforehand in case something goes wrong.

v4.0.1 changed the hashing algorithm for a better, faster one. So if you are currently running v4.0.0 and decide to update to v4.0.1+ it's in your best interest to rehash all the files your instance is serving. To do this go to the chibisafe root folder and run node src/api/utils/rehashDatabase.js. Depending on how many files you have it can take a few minutes or hours, there's a progress bar that will give you an idea.

What is Chibisafe?

Chibisafe is a file uploader service written in node that aims to to be easy to use and easy to set up. It's mainly intended for images and videos, but it accepts anything you throw at it.

  • You can run it in public or private mode, making it so only people with user accounts can upload files as well as controlling if user signup is enabled or not.
  • Out of the box support for ShareX configuration letting you upload screenshots and screenrecordings directly to your chibisafe instance.
  • Browser extension to be able to right click any image/video from any website and upload it directly to your chibisafe instance.
  • Chunk uploads enabled by default to be able to handle big boi files.
  • API Key support so you can integrate the service with whatever you desire.
  • Albums, tags and Discord-like search function
  • User list and control panel

Docker

If you want to deploy a docker instance instead of manually setting the service up, you can use docker-composer with our scripts. Please refer to the docs here

Pre-requisites

This guide asumes a whole lot of things, including that you know your way around linux, nginx and internet in general.

  • Decently updated version of linux (we recommend Debian)
  • node version 12.18.2+ (we recommend using volta.sh or n)
  • build-essential package installed in your system to build dependencies
  • ffmpeg package installed
  • pm2 globally installed (npm i -g pm2) to keep the service alive at all times.
    • Alternatively you can use tmux, forever, or whatever you are most familiar with
  • nginx installed and running

Note: while Chibisafe does work on Windows, setting it up is not covered in this readme. It's up to you to install the neccessary dependencies

Installing

  1. Clone the repository and cd into it
  2. Run npm i
  3. Run npm run setup

Chibisafe is now installed, configured and ready. Now you need to serve it to the public by using a domain name.

  1. Check the nginx file for a sample configuration that has every step to run chibisafe securely on production.

After you finish setting up nginx, you need to start chibisafe by using pm2. If you want to use something else like forever, ensure that the process spawned from npm run start never dies.

  1. Run pm2 start pm2.json:
  2. Profit

Screenshots

Author

Chibisafe ยฉ Pitu, Released under the MIT License.
Authored and maintained by Pitu.

chibisafe.moe ยท GitHub @Pitu

chibisafe's People

Contributors

pitu avatar zephyrrus avatar pitu-deploy avatar icrawl avatar bobbywibowo avatar shumatsu avatar korewakiyo avatar giantcow avatar hyperdefined avatar nadyanayme avatar dependabot[bot] avatar pascaltemel avatar imurx avatar osu avatar scruffyrules avatar vvlnt avatar bigbrainafk avatar azatej avatar ishibi avatar swaggaaa avatar sanchezsihaya avatar robflop avatar natnat-mc avatar foxt avatar disre avatar jeremyfritzen avatar jasonetco avatar test137e29b avatar dragonfire535 avatar brandondusseau avatar

Stargazers

bella avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.