Hello everybody!

Some time ago, I asked this question on the Wikimedia Development Support 
forums [1], but unfortunately nobody answered. Mabye here on the mailing list 
someone can help me.


I want to change the configuration of the Parsoid service dynamically, without 
modifying the `config.yaml`/`localsettings.js` and restarting the service.


My use case is simple: I need _one_ Parsoid to serve multiple MediaWikis 
instances. And I need to be able to add new instances without the need to 
reconfigure/restart Parsoid everytime.


The logic would be "If the calling MediaWiki instance sends 'ABC' as a prefix, 
the API url of that instance will be 'https://myserver/wikis/ABC/api.php'".


I have the strong feeling that overriding the `parsoidConfig` object in 
`localsettings.js` will be the way to go. Am I on the right track?

Your hints and suggestions are much appreciated.


[1] https://discourse-mediawiki.wmflabs.org/t/dynamic-parsoid-configuration/775


--

Robert Vogel
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to