Initial commit
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
```
|
||||
__ _ ___ _ __ ___ ___ ___ _ ____ _____
|
||||
/ _` |/ _ | '_ ` _ \/ __|/ _ | '__\ \ / / _ \
|
||||
| (_| | __| | | | | \__ | __| | \ V | __/
|
||||
\__, |\___|_| |_| |_|___/\___|_| \_/ \___|
|
||||
|___/
|
||||
```
|
||||
|
||||
Gemserve is a simple Gemini server written in Go.
|
||||
|
||||
Run tests and build:
|
||||
|
||||
```shell
|
||||
make test #run tests only
|
||||
make #run tests and build
|
||||
```
|
||||
|
||||
Run:
|
||||
|
||||
```shell
|
||||
LOG_LEVEL=info \
|
||||
PANIC_ON_UNEXPECTED_ERROR=true \
|
||||
RESPONSE_TIMEOUT=10 \ #seconds
|
||||
ROOT_PATH=./srv \
|
||||
DIR_INDEXING_ENABLED=false \
|
||||
./gemserve 0.0.0.0:1965
|
||||
```
|
||||
|
||||
You'll need TLS keys, you can use `certs/generate.sh`
|
||||
for quick generation.
|
||||
|
||||
## TODO
|
||||
- [ ] Fix slowloris (proper response timeouts)
|
||||
Reference in New Issue
Block a user