Thunix Wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Blade of Darkness 527916b078 Add Backup wiki page 4 months ago
articles Add Backup wiki page 4 months ago
includes Make codeblocks responsive and don't hardcode baseURL 10 months ago
parsedown-1.7.3 Switching to use parsedown 3 years ago
.htaccess Allow dots in requested page name 10 months ago
LICENSE Initial commit 3 years ago
README.md Minimal README with nginx example config 10 months ago
config.php Make codeblocks responsive and don't hardcode baseURL 10 months ago
wiki.php Add path debugging print statements in comment 10 months ago

README.md

thunix wiki

Requires a webserver and PHP. The web server needs to be configured to:

  • serve wiki.php by default (not index.php)
  • when a requested URL does not correspond to an actual file, pass the requested page to wiki.php?page=

On apache, this is achieved by provided .htaccess. On nginx, you can do something like:

server {
	listen 80;
	root /var/www/wiki_webroot;
	index wiki.php;
	server_name _;

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
	}

	location ~ ^/(.+)$ {
		try_files $uri $uri/ /wiki.php?page=$1;
	}
}