Compare commits

..

No commits in common. "621cd34508373fe562b2a6baf29824b9a4cc6532" and "1ab01ac492fb1585578d6e2afa5b640763277ece" have entirely different histories.

5 changed files with 3 additions and 63 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
files/ files/
abyss abyss
.env .env
dev/

View File

@ -10,7 +10,6 @@ note: this is a project made for learning purposes, you should use other more ma
- [installing with docker](#docker) - [installing with docker](#docker)
- [installing manually](#manual) - [installing manually](#manual)
- [uploading files](#uploading) - [uploading files](#uploading)
- [home page](#homepage)
- [docs](#docs) - [docs](#docs)
- [todo list](#todo) - [todo list](#todo)
@ -41,15 +40,9 @@ docker compose up -d # might be docker-compose depending on distro
- then, simply upload your files with curl: - then, simply upload your files with curl:
```bash ```bash
curl -F "file=@/path/to/file" -H "X-Auth: "$(cat /path/to/.key) http://localhost:3235/ curl -F "file=@/path/to/file" -H "X-Auth: "$(cat /path/to/.key) http://localhost:8999/
``` ```
## homepage
- there is an example homepage in `static/` you can edit directly, which the server will serve automatically
- if running with docker, it's also possible to override `/static` inside the container with your own page.
- it is preferred to use `dev/` for that reason, since it is git-ignored and that way makes it easier if wanting to update regularly without making changes to the tree
## docs ## docs
- `ABYSS_URL`: this is used for the correct formatting of the response of `curl`. - `ABYSS_URL`: this is used for the correct formatting of the response of `curl`.
@ -66,5 +59,4 @@ curl -F "file=@/path/to/file" -H "X-Auth: "$(cat /path/to/.key) http://localhost
- [x] add file browser (like file://) - [x] add file browser (like file://)
- [x] add file extension in its name - [x] add file extension in its name
- [x] login prompt when accessing /tree - [x] login prompt when accessing /tree
- [x] home page
- [ ] add rate limits - [ ] add rate limits

View File

@ -4,8 +4,7 @@ services:
ports: ports:
- "3235:3235" - "3235:3235"
volumes: volumes:
- ./files:/files - ./files:/app/files
- ./dev:/static:ro restart: unless-stopped
env_file: env_file:
- .env - .env
restart: unless-stopped

View File

@ -1,19 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Abyss - A minimalist pastebin webserver" />
<title>abyss paste</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>abyss paste</h1>
<a href="/last">
<button>last uploaded file</button>
</a>
</body>
</html>

View File

@ -1,31 +0,0 @@
body {
font-family: Arial, sans-serif;
background-color: #1d1f21;
color: #c5c6c7;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
button {
padding: 0.75rem 2rem;
background-color: #66fcf1;
border: none;
border-radius: 5px;
color: #1f2833;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a29e;
}