2020-08-24 14:49:49 +00:00
|
|
|
[Molly Brown](https://tildegit.org/solderpunk/molly-brown) server for the
|
|
|
|
[Gemini](https://gemini.circumlunar.space/) protocol.
|
|
|
|
|
2020-08-24 15:29:47 +00:00
|
|
|
Needs to run with a tty.
|
|
|
|
|
2020-08-24 14:49:49 +00:00
|
|
|
# Volumes
|
|
|
|
- `/var/gemini/`: root directory for files
|
|
|
|
- `/etc/molly-brown/keys`: key files
|
|
|
|
|
2021-09-28 15:10:49 +00:00
|
|
|
# Files
|
|
|
|
## /etc/molly-brown/keys/key.pem, /etc/molly-brown/keys/cert.pem
|
|
|
|
```
|
|
|
|
openssl req -x509 -newkey rsa:4096 -keyout "./key.pem" -out "./cert.pem" -days 3650 -nodes -subj "/CN=$HOST_NAME"
|
|
|
|
cat ./key.pem
|
|
|
|
cat ./cert.pem
|
|
|
|
```
|
|
|
|
|
|
|
|
Do not forget to set a timer for when it expires.
|
|
|
|
|
2020-08-24 14:49:49 +00:00
|
|
|
# Environment Variables
|
|
|
|
## HOST_NAME
|
|
|
|
The hostname to respond to requests for.
|
|
|
|
|
|
|
|
## DEFAULT_LANG
|
|
|
|
- default: en
|
|
|
|
|
|
|
|
`lang` parameter of the MIME type for all `text/gemini` content.
|
|
|
|
|
|
|
|
# Ports
|
|
|
|
- 1965
|