/sharex-docker-upload-server

Basic ShareX custom upload server which can be deployed on Docker or Kubernetes

Primary LanguagePHP

Docker ShareX Custom Upload Server

This is a really basic ShareX custom upload server which can be installed on Docker or Kubernetes. It can only upload images.

You can build the docker image if you want or use the published docker image if you don't want to modify anything.

docker pull ghcr.io/davidilie/sharex-docker-upload-server:latest

Building the Docker Image

docker build -t *registry/name* .

ENV and Paths

env variables:

  • SECRET_KEY - a key which will be used to protect your sharex server from being used by others
  • DOMAIN_URL - the domain in which the server will run on

paths:

  • /var/www/html/img - where the images are uploaded to

Deployment

You can deploy this on Docker or Kubernetes:

Docker

sudo docker run -dit --name sharex-upload-server -p 8080:80 *imagename* -v *hostpath*:/var/www/html/img

Kubnernetes

You can create the deployment yourself or use an orchestrator like Rancher or Portainer.

Connecting it to ShareX

In ShareX, go to Destinations and to Custom Uploader Settings

Create something similar this but ensure that these match your information