https://github.com/justsharan/imagehoster
A basic image hosting service you can run yourself.
https://github.com/justsharan/imagehoster
go golang image sharex sharex-server uploader
Last synced: about 2 months ago
JSON representation
A basic image hosting service you can run yourself.
- Host: GitHub
- URL: https://github.com/justsharan/imagehoster
- Owner: justsharan
- License: mit
- Created: 2021-10-20T23:04:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-20T23:23:33.000Z (over 3 years ago)
- Last Synced: 2025-02-09T12:31:10.987Z (4 months ago)
- Topics: go, golang, image, sharex, sharex-server, uploader
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imagehoster
This is a really simple utility you can use to serve images from your own domain. Think of it like your own, personal imgur.All the other GitHub repos I found were awfully bloated for my use case, so I just decided to make my own. It's extremely fast, extensible, and written in less than 100 lines of Go.
### Setup
Once you build the utility, you just need to set these things:* `$USAGE_KEY` (env) : Authorization header that it looks for in POST requests
* `-p` (flag) : Port that the utility listens to (Default: `4000`)
* `-dir` (flag) : Directory where images will be stored (Default: `./uploads/`)### Usage
The utility is used entirely through its REST endpoints:| Request | Description |
|----------------|---------------------------------------|
| `GET /:image` | Gets an image identified by that tag. |
| `POST /upload` | Creates a new image. |### Tips
1. This utility is ShareX-friendly. You can use the information above to add it as a private ShareX endpoint in your settings (I'm not on Windows so I wouldn't know much about actually configuring this, though).
2. If you want to include a landing page when the user hits `/`, just add an `index.html` file in that directory.### License
Refer to the [LICENSE](LICENSE) file.