Code Monkey home page Code Monkey logo

goshare's Introduction

GoShare

A simple and light-weight ShareX image server designed to be "low-power". It's basically a Golang file server with an upload route built with an IP whitelist and token authentication. The server is designed to run headless and without any database requirements.

Deploying an instance

Two commands will get this up and running. Firstly make sure you have Docker installed on your machine. Once you've done that, edit the main.go file and change the variables as you please.

Now, you're ready to start the server, firstly, build the image for the server with the following command.

docker build . --tag goshare:latest

Wait for the image to build (even on a low-resource system like a Raspberry Pi, this should take no more than 5 minutes). Once complete, you can run the container with the command below.

docker run -d -v ~/goshare/uploads:/opt/site/uploads --name goshare --network="host" goshare:latest

You'll likely want to setup an Nginx Reverse Proxy in addition to CloudFlare to make this work best but I'm sure y'all can figure that out yourselves (plus there's like a million and 2 guides on it out there).

Getting 419s when my MaxUploadSize is huge

If you're getting 419: Request Entity Too Large errors even though your file's size is within what is needed, then it's likely your Reverse Proxy. For Nginx users, the fix is simple, add the following to your config and reload.

client_max_body_size 100M;

Note: 100M means 100 Megabytes, change it as you please.

goshare's People

Contributors

jack-gledhill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

secludedhusky

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.