Tritan's ShareX Host is a self-hosted solution for managing and sharing images and URLs using ShareX. This project provides a web interface for uploading images, managing shortened URLs, and viewing upload statistics.
- Image Uploading: Easily upload images using the web interface or ShareX.
- URL Shortening: Create and manage shortened URLs.
- User Authentication: Secure access with API keys.
- Upload Management: View, delete, and manage uploaded images.
- URL Management: View, edit, and delete shortened URLs.
- Statistics: Track views and clicks for uploads and URLs.
- Responsive Design: Mobile-friendly interface.
-
Clone the repository:
git clone https://github.com/Team-Tritan/ShareX-Host-v2.git cd ShareX-Host-v2
-
Install docker.
-
Set up the configuration:
Fill in the config/config.go file with applicable settings.
-
Run the server and frontend:
sudo docker compose up
-
Open your browser and navigate to
http://localhost:3000
.
- Login: Enter your API key to log in.
- Upload Images: Drag and drop images to upload or use the ShareX configuration.
- Manage Uploads: View, delete, and manage your uploaded images.
- Shorten URLs: Create and manage shortened URLs.
- View Statistics: Track views and clicks for your uploads and URLs.
To configure ShareX for image uploading and URL shortening, use the provided configuration links in the web interface.
- Generate ShareX Config:
/api/config
- Upload Image:
/api/upload
- Get Uploads:
/api/uploads
- Delete Upload:
/api/delete-upload/{slug}
- Create URL:
/api/create-url
- Get URLs:
/api/urls
- Delete URL:
/api/delete-url/{slug}
- Update URL Slug:
/api/url/{slug}
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the Apache License.