Home.md
... ...
@@ -9,6 +9,7 @@ You can find me on GitHub [@pscheede](https://github.com/pscheede).
9 9
10 10
- [Resources about Git](./Git)
11 11
- [MacOS](./MacOS)
12
+- [How is this wiki hosted](./How is this wiki hosted.md)
12 13
13 14
## Recent Highlights
14 15
How is this wiki hosted.md
... ...
@@ -0,0 +1,28 @@
1
+This wiki is hosted by using [gollum](https://github.com/gollum/gollum?tab=readme-ov-file#running-from-source).
2
+
3
+And also some other stuff:
4
+- a bare git repository in the main users home directory
5
+- a systemd service, which hosts gollum on localhost on port 8469
6
+- an apache reverse proxy which enables SSL for this wiki
7
+
8
+## Systemd service
9
+
10
+```
11
+[Unit]
12
+Description=Gollum wiki service
13
+After=network.target
14
+StartLimitIntervalSec=0
15
+
16
+[Service]
17
+Type=simple
18
+Restart=always
19
+RestartSec=1
20
+User=philipp
21
+ExecStart=/usr/local/bin/gollum --host localhost --port 8469 --bare --no-edit --emoji /path/to/wiki.git
22
+
23
+[Install]
24
+WantedBy=multi-user.target
25
+```
26
+
27
+`--no-edit` means, that the wiki can only be edited by pushing new commits and not from the web interface. `--emoji` enables emoji rendering support, which is very important!
28
+