All Pages > wiki-ng docs > Hosting
Wiki-ng is just static html, so it can be hosted everywhere a webserver can be run.
Configuration
Update script
One option to keep the contents of the wiki up to date is to use the update script. To use the script, a gitea API token is required.
FILE="/path/to/dir"
TOKEN="api_token"
The extract option will extract the contents to the $FILE/public
directory.
Example cron
Zola
The other option to keep the contents of the wiki up to date is to pull the repository und build the files. To do that, install zola, clone the repository and run zola build
in it. The contents will be located in the /public
directory again.
Example script and cron
#!/bin/bash
&&
Nginx example config
server {
[::]:80 http2;
[::]:443 ssl http2;
dn42.cc;
off;
/path/to/cert;
/path/to/key;
root {/path/to/webroot}/public;
rewrite /wiki/internal /403-internal permanent;
404 /404.html;
}