Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arnaucube/goimgserver
Server of images, written in Go lang
https://github.com/arnaucube/goimgserver
cdn go golang images server
Last synced: about 6 hours ago
JSON representation
Server of images, written in Go lang
- Host: GitHub
- URL: https://github.com/arnaucube/goimgserver
- Owner: arnaucube
- License: gpl-3.0
- Created: 2017-06-20T07:01:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T15:58:06.000Z (over 7 years ago)
- Last Synced: 2024-04-16T22:33:55.083Z (7 months ago)
- Topics: cdn, go, golang, images, server
- Language: Go
- Homepage:
- Size: 3.56 MB
- Stars: 3
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goImgServer
Server of images, written in Go langThis is a server to post images and serve images.
File type accepted:
```
- PNG
- JPG
- JPEG
```
All the files are converted to PNG, and resized to the configured sizes.## Use
upload example (with curl):
```
curl -F file=@./image1.png http://127.0.0.1:3050/image
```to get image:
```
http://127.0.0.1:3050/images/image1.png
```## Configuration
Example configuration file (config.json):
```
{
"folder": "files",
"blockedIPs": [
"192.168.1.3",
"147.116.48.158"
],
"allowedIPs": [
"127.0.0.1"
],
"imgWidth": 200,
"imgHeigh": 0
}
```
The "allowedIPs" are the IPs allowed to post images."blockedIPs" are the IPs blocked from posting images.
Also, all IPs not present in the "allowedIPs", will be blocked.