gMNd is my gemini server, which is written in python. Documentation will primarily be supplied via [gemini://mic.ke/gmnd/docs](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:
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](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:
Currently it only serves static files. You can build and run it from the supplied Dockerfile if you so whish:
You can build and run it from the supplied Dockerfile if you so whish:
```
```
docker build -t gmnd:latest .
docker build -t gmnd:latest .
```
```
@ -9,11 +9,11 @@ By just running it, it will create self signed certs and serve example content f
```
```
docker run -p 1965:1965 gmnd
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:
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" -p 1965:1965 gmnd
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:
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
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