Micke Nordin
413d061c13
|
4 years ago | |
---|---|---|
cgi-bin | 4 years ago | |
content | 4 years ago | |
debian | 4 years ago | |
gmnd | 4 years ago | |
packaging_scripts | 4 years ago | |
rpm | 4 years ago | |
Dockerfile | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
config.yml | 4 years ago | |
openssl.conf | 4 years ago |
README.md
gMNd
gMNd is my gemini server, which is written in python. It has support for serving static files, or run cgi-scripts. Documentation will primarily be supplied via gemini://mic.ke/gmnd/docs, but if you are not yet able to access content via gemini, here is a quick start guide for your viewing pleasure:
You can build and run it from the supplied Dockerfile if you so whish:
docker build -t gmnd:latest .
By just running it, it will create self signed certs and serve example content from this repo:
docker run -p 1965:1965 gmnd
A slightly more interesting thing it can do is serve your own content, in this example from /tmp/content on your host machine and cgi-scripts from /tmp/cgi-bin:
docker run --mount type=bind,source="/tmp/content,target=/app/content" --mount type=bind,source="/tmp/cgi-bin,target=/app/cgi-bin" -p 1965:1965 gmnd
Or even supply your own certificates from the outside, in this example in /usr/local/certs with static content from /tmp/content:
docker run --mount type=bind,source="/tmp/content,target=/app/content" --mount type=bind,source="/usr/local/certs,target=/app/certs" -p 1965:1965 gmnd