Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
example/ | 09-Feb-2024 | - | 79 | 79 | ||
host/ | 09-Feb-2024 | - | ||||
src/ | 09-Feb-2024 | - | 718 | 526 | ||
LICENSE | D | 08-Feb-2024 | 1 KiB | 22 | 17 | |
README.md | D | 08-Feb-2024 | 1.9 KiB | 48 | 32 | |
composer.json | D | 08-Feb-2024 | 643 | 20 | 19 |
README.md
1# β-Doku is DokuWiki Satellite for Gemini Protocol 2 3Allows to launch read-only DokuWiki instance using [Gemini Protocol](https://geminiprotocol.net/) 4 5It based on [titan-II](https://github.com/YGGverse/titan-II) server, [gemini-php](https://github.com/YGGverse/gemini-php) to parse DokuWiki data folder, [cache-php](https://github.com/YGGverse/cache-php) to save compiled pages in memory and [manticore](https://github.com/manticoresoftware) for full-text search. 6 7Project under development, please join to work by sending PR or bug report! 8 9## Examples 10 11* `gemini://[301:23b4:991a:634d::b]` - Mirror of `http://[222:a8e4:50cd:55c:788e:b0a5:4e2f:a92c]` 12 * `gemini://betahowto.ygg` - Alfis / Yggdrasil alias 13 * `gemini://betahowto.duckdns.org` - Clearnet alias 14 15## Install 16 171. `wget https://repo.manticoresearch.com/manticore-repo.noarch.deb` 182. `dpkg -i manticore-repo.noarch.deb` 193. `apt update` 204. `apt install git composer memcached manticore manticore-extra php-fpm php-memcached php-mysql php-mbstring` 215. `git clone https://github.com/YGGverse/bdoku.git` 226. `cd bdoku` 237. `composer update` 24 25## Setup 26 271. `cd bdoku` 282. `mkdir host/127.0.0.1` 293. `cp example/config.json host/127.0.0.1/config.json` 304. `cd host/127.0.0.1` 315. `openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem -days 365 -nodes -subj "/CN=127.0.0.1"` 32 33## Start 34 35Before launch the server, copy or create alias of `path/to/dokuwiki/data` folder to `bdoku/host/127.0.0.1` on example above. 36 37On every start, previous memory cache will be cleaned and new search index created. 38After `data` folder update, you need just to restart your server with systemd or another process manager. 39 40`php src/server.php 127.0.0.1` 41 42Open `gemini://127.0.0.1` in your favorite [Gemini browser](https://github.com/kr1sp1n/awesome-gemini)! 43 44## Update 45 461. `cd bdoku` 472. `git pull` - get latest codebase from this repository 483. `composer update` - update vendor libraries