internal/Anycast-Wiki.md
... ...
@@ -1,9 +1,14 @@
1 1
The idea is to setup mirrors of this wiki across dn42, using [anycast](https://en.wikipedia.org/wiki/Anycast) to provide redundancy and load-balancing.
2 2
The local webserver is monitored with a simple shell script (below) working in conjuction with [ExaBGP](https://github.com/Exa-Networks/exabgp), announcing/withdrawing the assigned route if the service is up/down.
3 3
4
-### Checklist:
4
+### Network:
5 5
6
- * Install [gollum](https://github.com/gollum/gollum).
6
+ * Install wiki anycast address `172.23.0.80/32` on the system
7
+ * Setup tunnel(s) to the dn42 network (routing daemon not required)
8
+
9
+### Set up gollum:
10
+
11
+ * Install [gollum](https://github.com/gollum/gollum)
7 12
* Clone the dn42 wiki repo:
8 13
9 14
`git clone ssh://[email protected]/dn42/wiki <path>`
... ...
@@ -20,7 +25,9 @@ gollum --css <path>/custom.css --gollum-path <path>/public_html/ --host 127.0.0.
20 25
gollum --css <path>/custom.css --gollum-path <path>/public_html/ --host 127.0.0.1 --port 4567 --no-edit
21 26
```
22 27
23
- * Install/configure nginx:
28
+###Install/configure nginx:
29
+
30
+##### /etc/nginx/sites-enabled/wiki.dn42:
24 31
25 32
```
26 33
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
... ...
@@ -68,6 +75,8 @@ server {
68 75
}
69 76
}
70 77
78
+###Setup [ExaBGP](https://github.com/Exa-Networks/exabgp)
79
+
71 80
```
72 81
73 82
#####gollum-watchdog.sh: