nodes/htz.ex42-1048908: update nginx config for wiki.franzi.business

This commit is contained in:
Franzi 2020-10-18 19:30:23 +02:00
parent 48cc865892
commit f36e36d74a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,12 @@
location ~ /(data|conf|bin|inc|vendor)/ {
deny all;
}
location / { try_files $uri $uri/ @dokuwiki; }
location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/(.*) /doku.php?id=$1&$args last;
}

View file

@ -215,8 +215,13 @@ nodes['htz.ex42-1048908'] = {
'php': True,
},
'wiki.franzi.business': {
'index': 'index.php',
'index': 'doku.php',
'extras': True,
'php': True,
'webroot_config': {
'owner': 'www-data',
'group': 'www-data',
},
},
},
'worker_processes': 4,