Source for gemini://gemini.randomroad.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

```
_ _ _
_ __ __ _ _ __ __| | ___ _ __ ___ _ __ ___ __ _ __| | _ __ ___| |_
| '__/ _` | '_ \ / _` |/ _ \| '_ ` _ \| '__/ _ \ / _` |/ _` | | '_ \ / _ \ __|
| | | (_| | | | | (_| | (_) | | | | | | | | (_) | (_| | (_| |_| | | | __/ |_
|_| \__,_|_| |_|\__,_|\___/|_| |_| |_|_| \___/ \__,_|\__,_(_)_| |_|\___|\__|
```
# Welcome!
Welcome to randomroad.net in the Geminispace.
There's not a lot here right now. You probably want one of these subdomains instead:
=> gemini://dctrud.randomroad.net dctrud's gemini site, gemlog etc.
## cgi-bin
Some experiments with gemini cgi-bin scripts:
=> cgi-bin/status Server status
=> cgi-bin/weather My local weather forecast
## About this Server
This is a little gemini server running the current version of jetforce, on a Raspberry Pi 3B tucked safely behind my TV in a living room in the Dallas area. It hosts multiple domains using the jetforce vhost functionality, configured to use a certificate created with gemcert.
```
from jetforce import GeminiServer, StaticDirectoryApplication
from jetforce.app.composite import CompositeApplication
app_dctrud = StaticDirectoryApplication(root_directory="/home/dave/gemini/dctrud.randomroad.net")
app_default = StaticDirectoryApplication(root_directory="/home/dave/gemini/randomroad.net")
app = CompositeApplication(
{
# Actual content
"dctrud.randomroad.net": app_dctrud,
# Domain toplevel
"randomroad.net": app_default,
# Use a default static file server for all other domains
None: app_default,
}
)
if __name__ == "__main__":
server = GeminiServer(app,
host="0.0.0.0",
certfile="/home/dave/gemini/cert.pem",
keyfile="/home/dave/gemini/privkey.pem")
server.run()
```