:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
docker selfhosted encryption image-uploader images mp4-uploads picture
PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself.
Image and MP4 Hosting
Simple API
Encryption
PictShare can be easily deployed using Docker. The following steps will guide you through the deployment process:
Clone the PictShare repository: git clone https://github.com/notates/pictshare.git
Create a .env
file in the cloned repository and set the following environment variables:
PICTSHARE_URL
: The base URL of your PictShare instancePICTSHARE_SECRET
: A secret key used to encrypt dataPICTSHARE_ENCRYPTION_KEY
: Base64-encoded AES-256 encryption keyBuild the Docker image: docker build -t pictshare .
Run the container: docker run -p 80:80 pictshare
To upload an image, send a POST request to the /api/upload
endpoint with the following fields:
image
: The image file in multipart/form-data formatresize
: The desired width and height of the resized image (optional)The endpoint will return a JSON response with the URL of the uploaded image.
To upload an MP4 video, send a POST request to the /api/upload_mp4
endpoint with the following fields:
mp4
: The MP4 video file in multipart/form-data formatThe endpoint will return a JSON response with the URL of the uploaded MP4 video.
Contributions are welcome! Please read the contributing guidelines before submitting a pull request.