Created
August 26, 2015 19:32
-
-
Save vanatteveldt/798b651cc450cc384010 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/mediawiki/parsoid/settings.js | |
"use strict"; | |
/* | |
* This is a sample configuration file. | |
* | |
* Copy this file to localsettings.js and edit that file to fit your needs. | |
* | |
* Also see the file ParserService.js for more information. | |
*/ | |
exports.setup = function( parsoidConfig ) { | |
// The URL of your MediaWiki API endpoint | |
// | |
// We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly for | |
// other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks', | |
// 'enwikivoyage' etc. | |
// | |
// Optionally, you can also pass in a proxy specific to this prefix | |
// (overrides defaultAPIProxyURI), or null to disable proxying for | |
// this end point. | |
parsoidConfig.setInterwiki( 'amcatwiki', 'http://wiki.amcat.nl/api.php' ); | |
// A default proxy to connect to the API endpoints. Default: undefined | |
// (no proxying). Overridden by per-wiki proxy config in setInterwiki. | |
// parsoidConfig.defaultAPIProxyURI = 'http://proxy.example.org:8080'; | |
// Enable debug mode (prints extra debugging messages) | |
// parsoidConfig.debug = true; | |
// Use the PHP preprocessor to expand templates via the MW API (default true) | |
//parsoidConfig.usePHPPreProcessor = false; | |
// Use selective serialization (default false) | |
parsoidConfig.useSelser = true; | |
// allow cross-domain requests to the API (default disallowed) | |
//parsoidConfig.allowCORS = '*'; | |
}; | |
$ bin/mw-ocg-bundler -v -p amcatwiki --php-api http://wiki.amcat.nl/ --a http://localhost:8142 --api-version=parsoid2 Querying | |
[0%] Fetching wiki configuration | |
[0%] Fetching wiki configuration: http://wiki.amcat.nl/ | |
[4%] Fetching wiki configuration: | |
[8%] Fetching wiki configuration: amcatwiki siteinfo | |
[17%] Fetching parsed articles | |
[17%] Fetching parsed articles: collection | |
[23%] Fetching parsed articles: amcatwiki:Querying [Parsoid, latest revision] | |
Retrying (1) http://parsoid-lb.eqiad.wikimedia.org/v2/wiki.amcat.nl/html/Querying 404 | |
Retrying (2) http://parsoid-lb.eqiad.wikimedia.org/v2/wiki.amcat.nl/html/Querying 404 | |
Retrying (3) http://parsoid-lb.eqiad.wikimedia.org/v2/wiki.amcat.nl/html/Querying 404 | |
Error fetching parsoid2 result: http://parsoid-lb.eqiad.wikimedia.org/v2/wiki.amcat.nl/html/Querying |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment