2024-08-19 13:01:23 -03:00
|
|
|
# abyss
|
|
|
|
abyss is a basic http server made for uploading images and then sharing them to the internet
|
|
|
|
|
|
|
|
note: this is a project made for learning purposes, you should use other more mature projects if running in production
|
|
|
|
|
|
|
|
## running:
|
|
|
|
- edit consts in `main.go` to match your needs. (for example, on my server, change `$url` so that the response will be nicely formatted)
|
|
|
|
|
|
|
|
- to run it, either build with `go build -o abyss` or run it directly with:
|
2024-08-19 13:03:24 -03:00
|
|
|
```bash
|
2024-08-19 13:01:23 -03:00
|
|
|
go run ./main.go
|
|
|
|
```
|
2024-08-19 13:03:24 -03:00
|
|
|
|
|
|
|
- then, simply upload your images with curl:
|
|
|
|
```bash
|
|
|
|
curl -X POST -F "image=@/path/to/image" http://localhost:8080/upload # default path
|
|
|
|
```
|
2024-08-19 13:01:23 -03:00
|
|
|
## todo:
|
|
|
|
- add upload of logs funcionality (like 0x0.st)
|
|
|
|
- add docker easy setup
|