parent
0864bc97fc
commit
815804b948
@ -0,0 +1,38 @@
|
||||
# Installation
|
||||
Please use supplied debian and rpm repos. Packages are signed with gpg.
|
||||
|
||||
# DEB
|
||||
```
|
||||
curl https://repo.mic.ke/PUBLIC.KEY | sudo apt-key add -
|
||||
curl https://repo.mic.ke/debian/debian-micke-unstable.list | sudo tee /etc/apt/sources.list.d/debian-micke-unstable.list
|
||||
sudo apt update && sudo apt install gmnd
|
||||
```
|
||||
|
||||
# RPM
|
||||
```
|
||||
wget https://repo.mic.ke/PUBLIC.KEY
|
||||
sudo rpm --import PUBLIC.KEY
|
||||
sudo dnf config-manager --add-repo https://repo.mic.ke/rpm/rpm-micke.repo
|
||||
sudo dnf install gmnd
|
||||
```
|
||||
|
||||
# Docker
|
||||
|
||||
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
|
||||
```
|
||||
..
|
||||
=> gemini://mic.ke/gmnd/docs/index.gmi back to gmnd/docs/
|
@ -1,19 +1,16 @@
|
||||
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 and dynamic content from /tmp/cgi-bin on your host machine:
|
||||
```
|
||||
docker run --mount type=bind,source="/tmp/content,target=/app/content" --mount type=bind,source="/tmp/ccgi-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:
|
||||
# Run gMNd
|
||||
|
||||
The simplest thing is to install using the deb or rpm:
|
||||
=> gemnini://mic.ke/gmnd/docs/installing.gmi
|
||||
|
||||
After that you can run it like this:
|
||||
```
|
||||
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
|
||||
# systemctl start gmnd
|
||||
```
|
||||
Running in docker is covered in the install docs above.
|
||||
|
||||
See information here about configuration options:
|
||||
=> gemini://mic.ke/gmnd/docs/configure.gmi
|
||||
|
||||
..
|
||||
=> gemini://mic.ke/gmnd/docs/index.gmi back to gmnd/docs/
|
||||
|
Loading…
Reference in new issue