Extension talk:Math/RESTBase
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Where is Restbase to be installed?
[edit]I have installed a mathoid server on a separated server than mediawiki. Where should I install restbase? 212.243.68.210 (talk) 12:55, 3 April 2017 (UTC)
Domain "wikimedia.org" is hardcoded in mathoid.yaml
[edit]I tried run Mathoid with Restbase but failed.
I got massage "Service unavailable bala.. " in my Restbase API page.
Then I found following lines in RESTbasePath/v1/mathoid.yaml
like uri: /wikimedia.org/sys/mathoid/check/{type}...
there are "wikimedia.org/sys/..."s.
I guess they should be "/{domain}/sys...", so I changed /wikimedia.org/sys... to /{domain}/sys..
Now, I can see the math APIs in my Restbase API page.
But, unfortunately, the math APIs don't work.
I got 404 error.
{ "type": "https://mediawiki.org/wiki/HyperSwitch/errors/not_found", "title": "Not found.", "method": "post", "uri": "MyRestbaseDomain/v1/media/math/check/tex" }
My Mathoid server is working normally.
any one have any idea?
if then, please share to me. Libattery (talk) 03:57, 7 June 2017 (UTC)
- Did you find any solution to this? Magol (talk) 12:40, 22 December 2018 (UTC)
- I solved 2 years ago. but I'm not sure that would work now. There was many version changes. sorry for late reply
- https://phabricator.wikimedia.org/T154394 Libattery (talk) 07:23, 21 January 2019 (UTC)
- I've just sorted this out for my site. For the benefit of anyone else struggling with this, in the {domain:YOURDOMAIN}/{api:sys} section of the Restbase config.yaml you need to add:Change the port number on the host line if Mathoid is using a different port. Prh47bridge (talk) 23:22, 25 April 2020 (UTC)
/mathoid x-modules: - path: sys/mathoid.js options: host: http://localhost:10044 cache_control: 's-maxage=0, max-age=86400'
projects/MR.yaml is moved
[edit]For the arbitrary domain example, the current version of restbase on github references examples.yaml instead of MR.yaml in restbase/config.yam. Along side that, projects/MR.yaml is now projects/examples.yaml.
I would edit it, but I am still very new to mathoid/restbase and don't want to break the configs. Gee-one (talk) 17:07, 29 August 2017 (UTC)
More clarification is needed for setting up an arbitrary domain with SSL/TLS on the same host.
[edit]I followed the "arbitrary domain" documentation, but I couldn't get it to work with SSL/TLS on the same host. I also used the walk through on github. The best functionality I could get is running only on the local network without https. This seems insecure, so I am too afraid to allow access from outside the firewall.
Mathoid seems to be working and I can connect to the restbase API, but I can't seem to get the wiki to talk to the API. I think the issue is possibly either:
- an apache issue and I need to proxy the requests for nodejs to the respective services
- a configuration issue where I need to be more specific about {domain}, localhost, and the actual domain, so that I am using the correct paths.
- a technical issue where it might be impossible or ridiculous to try to run the mediawiki and the node.js services using the same domain/named virtual host.
- none/some/all of the above
Any hints to point me in the right direction would be appreciated. My target is to have a small private wiki running on a self hosted server with the math rendering performed and served locally, all with SSL/TLS/HTTPS via letsencrypt.
If it makes any difference, I am running Debian stretch, MW 1.29, and mathoid/restbase from github. I would happily downgrade any of these if it results in an easier, working installation. Gee-one (talk) 17:23, 29 August 2017 (UTC)
How to setup Mathoid service for multiple domain
[edit]I was looking in config.yml but i couldn't find anything.
Kindly share if anyone has setup. Rajeshrajesh.35 (talk) 09:25, 19 November 2019 (UTC)
Any more recent instructions on getting math equations displayed decently without 3rd-party SaaS dependencies?
[edit]Minor edits only to this documentation article since 6 July 2017. Last comment over five years ago. Yes this software is very much in use, both officially and unofficially.
RESTBase is not running stably, neither on the official WikiMedia servers nor as far as I am aware on any private installations.
Quite correct to assume it is deprecated, and as @Libattery mentioned some 5 years ago, the math APIs don't work, and BTW I do not consider software with hardcoded domain names in it to be free or open source.
There's Mathjax of course, and experimental never-complete support for MathML equations via non-standard browser extensions, but Mathjax is every bit as much of a cumbersome commercial-oriented SaaS "solution" that also runs as a separate service on Nodejs. Justina Colmena ~biz (talk) 17:42, 16 January 2025 (UTC)
- The latest version of the Math extension offers MathML and MathJax as alternatives. MathML is supported since 2023 by chrome, but does not look great. MathJax is much faster than it was previously. I think it's worth giving it a try. You can share your feedback on T271001
- @Justina Colmena ~biz Physikerwelt (talk) 18:53, 18 January 2025 (UTC)
- Running mediawiki-1.42.4. Will that need to be updated to 1.43? Justina Colmena ~biz (talk) 20:39, 18 January 2025 (UTC)