abyss/README.md

38 lines
1.2 KiB
Markdown
Raw Normal View History

2024-08-19 13:01:23 -03:00
# abyss
2024-08-19 13:54:33 -03:00
abyss is a basic http server made for uploading files (logs, images) and then sharing them to the internet
2024-08-19 13:01:23 -03:00
note: this is a project made for learning purposes, you should use other more mature projects if running in production
2024-08-19 15:50:17 -03:00
## table of contents
- [running abyss](#running)
- [installing with docker](#docker)
- [installing manually](#manual)
- [todo list](#todo)
2024-08-19 13:01:23 -03:00
## running:
2024-08-19 15:50:17 -03:00
- change URL env variable in to your domain. example: `URL=paste.abyss.dev`
### docker
- to run with docker, you can use either docker compose or just straight docker.
- then run the docker compose command:
```bash
docker compose up -d # might be docker-compose depending on distro
```
- dont change inside port of 8080 unless you know what you're doing
### manual
2024-08-19 13:01:23 -03:00
2024-08-19 15:50:17 -03:00
- 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 15:50:17 -03:00
URL="your-domain" go run ./main.go
2024-08-19 13:01:23 -03:00
```
2024-08-19 13:03:24 -03:00
2024-08-19 13:54:33 -03:00
- then, simply upload your files with curl:
2024-08-19 13:03:24 -03:00
```bash
2024-08-19 13:54:33 -03:00
curl -X POST -F "file=@/path/to/file" http://localhost:8080/upload # default url:port
2024-08-19 13:03:24 -03:00
```
2024-08-19 13:01:23 -03:00
## todo:
2024-08-19 13:54:33 -03:00
- [x] add upload of logs funcionality (like 0x0.st)
2024-08-19 15:50:17 -03:00
- [x] add docker easy setup
2024-08-19 13:54:33 -03:00
- [ ] add db for tracking of file names
- [ ] add file browser (like file://)