Compare commits
No commits in common. "97870ddc4b18164834cb391f6b5d01f27eeac561" and "3cf851f232c3b4f69a28e76e645b9fc3f0312c3e" have entirely different histories.
97870ddc4b
...
3cf851f232
33
README.md
33
README.md
@ -2,14 +2,16 @@
|
|||||||
|
|
||||||
abyss is a basic and mostly single user http server written in go made for uploading files (logs, images) and then sharing them to the internet
|
abyss is a basic and mostly single user http server written in go made for uploading files (logs, images) and then sharing them to the internet
|
||||||
|
|
||||||
<figure>
|
## features
|
||||||
<img src="https://github.com/user-attachments/assets/eae42368-d8b5-4c42-ac8a-0e1486fcd0d4" alt="homepage"/>
|
|
||||||
<figcaption>this is abyss' default home page<figcaption/>
|
- **file uploads**: supports uploading various file types, including images, videos, and documents.
|
||||||
</figure>
|
- **flexible media display**: automatically renders uploaded files on a webpage based on their type (images, pdfs, videos, or plain text).
|
||||||
|
- **customizable interface**: allows for easy modification of color schemes and layout to suit specific design needs.
|
||||||
|
- **syntax highlighting for code**: syntax highlighting available by default for code files, with support for multiple programming languages. (can be tweaked/changed and even removed)
|
||||||
|
- **security considerations**: as it is single user, it's mostly secure but there are still some edges to sharpen
|
||||||
|
|
||||||
## table of contents
|
## table of contents
|
||||||
|
|
||||||
- [features](#features)
|
|
||||||
- [running abyss](#running)
|
- [running abyss](#running)
|
||||||
- [installing with docker](#docker)
|
- [installing with docker](#docker)
|
||||||
- [installing manually](#manual)
|
- [installing manually](#manual)
|
||||||
@ -17,15 +19,6 @@ abyss is a basic and mostly single user http server written in go made for uploa
|
|||||||
- [theming](#theming)
|
- [theming](#theming)
|
||||||
- [docs](#docs)
|
- [docs](#docs)
|
||||||
- [todo list](#todo)
|
- [todo list](#todo)
|
||||||
- [more pictures](#pictures)
|
|
||||||
|
|
||||||
## features
|
|
||||||
|
|
||||||
- **file uploads**: supports uploading various file types, including images, videos, and documents.
|
|
||||||
- **flexible media display**: automatically renders uploaded files on a webpage based on their type (images, pdfs, videos, or plain text).
|
|
||||||
- **easily customizable interface**: allows for easy modification of color schemes and layout to suit specific design needs.
|
|
||||||
- **syntax highlighting for code**: syntax highlighting available by default for code files, with support for multiple programming languages. (can be tweaked/changed and even removed)
|
|
||||||
- **security considerations**: as it is single user, it's mostly secure but there are still some edges to sharpen
|
|
||||||
|
|
||||||
## running:
|
## running:
|
||||||
|
|
||||||
@ -145,15 +138,3 @@ end
|
|||||||
- [x] custom file displaying!!
|
- [x] custom file displaying!!
|
||||||
- [x] syntax highlighting
|
- [x] syntax highlighting
|
||||||
- [ ] add rate limits
|
- [ ] add rate limits
|
||||||
|
|
||||||
## pictures
|
|
||||||
|
|
||||||
<figure>
|
|
||||||
<img src="https://github.com/user-attachments/assets/32ce9b3a-8c0f-4bb5-bdcf-3a602e0c81e6"/>
|
|
||||||
<figcaption>this is abyss' default directory list<figcaption/>
|
|
||||||
</figure>
|
|
||||||
|
|
||||||
<figure>
|
|
||||||
<img src="https://github.com/user-attachments/assets/7072b227-9972-4c2a-a9f3-384d2efb4fe1"/>
|
|
||||||
<figcaption>this is abyss' default file presentation<figcaption/>
|
|
||||||
</figure>
|
|
||||||
|
@ -29,7 +29,7 @@ var extensions = map[string]string{
|
|||||||
".log": "text", ".txt": "text", ".csv": "text",
|
".log": "text", ".txt": "text", ".csv": "text",
|
||||||
".json": "text", ".env": "text", ".sum": "text",
|
".json": "text", ".env": "text", ".sum": "text",
|
||||||
".gitignore": "text", ".dockerfile": "text", ".Makefile": "text",
|
".gitignore": "text", ".dockerfile": "text", ".Makefile": "text",
|
||||||
".rst": "text", ".el": "text", ".fish": "text",
|
".rst": "text", ".el": "text",
|
||||||
}
|
}
|
||||||
|
|
||||||
func DisplayFile(app *Application, file string, w http.ResponseWriter) {
|
func DisplayFile(app *Application, file string, w http.ResponseWriter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user