Giter Site home page Giter Site logo

bennyscripts / hypixel.lol Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 3.0 85 KB

A node.js sharex file uploader with multiple domains, upload keys, embeds and a pretty config generator.

License: MIT License

CSS 19.67% HTML 44.51% JavaScript 35.83%
sharex sharex-upload sharex-server nodejs-upload nodejs-server image-host image-hosting

hypixel.lol's Introduction

hypixel.lol

A node.js sharex file uploader with multiple domains, upload keys, embeds and a pretty config generator.
This is a great base to start a small image host.

Installation

  • Download either the source code or a release.
  • Open a terminal and run npm install to install all dependencies.
  • Configure the config in src/data/config.json
  • Run npm start to start the node.

Setup

To add domains you need to first open src/data/domains.json and add the domains to the list.
Then you need to point the domains in the list to the server hosting hypixel.lol.
Finally, all domains pointed should update and they should be working.

To use subdomains you need to setup a wildcard subdomain (*) in each domain.
This allowes anything to be put infront of the domain. Allowing custom subdomains, even ones that other people may already be using.

Config

The config may seem a little confusing at first.
Here is a list of all the keys in the config with their meaning.

  • maindomain : This is the main domain, if a domain is not set in the config it fallsback to this.
  • uploadkeylength : How many characters are after the username in the upload key.
  • uploadkeys : A list of the upload keys. Format: {username}_{key}. The part after the underscore must be the same length as uploadkeylength.
  • nodeserverport : The port for the server.

Api

  • GET /api/uploads/:uploadkey : Returns a list of uploads uploaded with the upload key.
  • GET /api/domains : Returns a list of all the domains.

Copyright

hypixel.lol is solely owned and developed by Benny. All rights go towards the developers.

hypixel.lol's People

Contributors

bennyscripts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hypixel.lol's Issues

crash

ight so i cant upload:
[Error: ENOENT: no such file or directory, rename '/tmp/upload_808c1f9fe3660cc0a28afaa9622e9ec9' -> '/root/hypixel.lol/src/raw/tkNZFbuT.png'] {
errno: -2,
code: 'ENOENT',
syscall: 'rename',
path: '/tmp/upload_808c1f9fe3660cc0a28afaa9622e9ec9',
dest: '/root/hypixel.lol/src/raw/tkNZFbuT.png'
}

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.