lantifa: Attempt to configure short URLs (to fix VisualEditor)

Signed-off-by: hexchen <hexchen@lilwit.ch>
This commit is contained in:
octycs 2021-01-15 11:05:42 +01:00 committed by hexchen
parent 4964ac6817
commit 57334cd690

View file

@ -26,6 +26,11 @@ in {
sha256 = "0d4f2ygglz4w515a7lgw59500q3xmr92xxhsmh8p204yaa769x8v";
};
in ''
// Configure short URLs
$wgScriptPath = "";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
require_once('${wikidb}/WikiDB.php');
$wgExtraNamespaces = array( 100 => "Table", 101 => "Table_Talk",);
$wgWikiDBNamespaces = 100;
@ -59,6 +64,11 @@ in {
hostName = "wiki.lantifa.org";
listen = [ { port = 80; } ];
adminAddr = "admin@hacc.space";
extraConfig = ''
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
'';
};
};
};