authenticname / sharex-server

ShareX image hosting done with Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sharex-server (Node.js)

Usage

You can use either Docker or run it directly with Node.js.

If you wish to do the latter, make sure to install Node from here and follow the instructions provided below:

  • npm install sharex-server
  • Use the following code:
const Server = require("sharex-server");
new Server({
  password: "password",
  path: "images",
  port: 6666,
  fileLength: 10,
});

Sharex configuration

  • The password is to be set as a header;
  • The file form name is to be set to image;
  • The image uploading endpoint is /api/upload;
  • The upload endpoint returns a JSON with a URL link;

ShareX - Custom uploader settings

About

ShareX image hosting done with Node.js

License:MIT License


Languages

Language:JavaScript 91.4%Language:Dockerfile 8.6%