Giter Site home page Giter Site logo

mediashare's Introduction

๐Ÿ–ฅ๏ธ mediashare

A ShareX media server made in Go.

๐Ÿงณ Requirements

  • Go (latest)

๐Ÿ—๏ธ Building

go build ./src/mediashare

๐Ÿ“˜ mediashare Setup

Change the password variable in main.go to a password you would like to use, then build. Next create an SSL certificate and name the files certificate.pem & certificate.key.

๐Ÿ“— ShareX Setup

Create a custom uploader by going to Destinations -> Custom Uploader Settings... and clicking the new button. Set the destination type to "Image Uploader" and name it whatever you want. In the request tab set the method to "POST", set the url to https://your.domain/upload, and set the body to "Form data (multipart/form-data)". Add a row to the body form named "password" and set the value to what you did in main.go. Set the file form name to "media". Now go to the response tab and set the URL to https://your.domain/$json:extension$/$json:filename$, set the Thumbnail URL to https://your.domain/$json:filename$.$json:extension$, and set the error message to $json:message$. Now go to Destinations -> Image Uploader and set it to "Custom image uploader". Your custom uploader should look something like this: Request Tab Response Tab

๐Ÿ•น๏ธ Usage

./mediashare

mediashare's People

Contributors

nates 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.