OS is Fedora 31
I downloaded parsoid from bluespice wiki
ii. create service under /etc/system/system/parsoid.service
[Unit]
Description=Mediawiki Parsoid web service on node.js
Documentation=
Wants=local-fs.target network.target
After=local-fs.target network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=nobody
Group=nobody
WorkingDirectory=/opt/parsoid
#EnvironmentFile=-/etc/parsoid/parsoid.env
ExecStart=/usr/bin/nodejs /opt/parsoid /bin/server.js
KillMode=process
Restart=on-success
PrivateTmp=true
StandardOutput=syslog
iii. Under /opt/parsoid/config.yaml
worker_heartbeat_timeout: 300000
logging:
level: info
services:
- module: lib/index.js
entrypoint: apiServiceWorker
conf:
localsettings: ./localsettings.js
iv. Under /opt/parsoid/localsettings.js
/
* This is an example configuration for a BlueSpiceWikiFarm setup
* In this case 'httpd' is used as wiki webserver machine name as it is in our
* docker environment.
/
'use strict';
exports.setup = function(parsoidConfig) {
parsoidConfig.dynamicConfig = function(domain) {
var baseUrl = Buffer.from( domain, 'base64').toString();
parsoidConfig.setMwApi({
uri: baseUrl + '/api.php',
domain: domain,
strictSSL: false
});
}
};
The nodejs is at version 10 and parsoid is v0.10
Here's the output of curl
[root@wiki-server BlueSpice3]# curl http://127.0.0.1:8000
<!DOCTYPE html>
<#html lang="en">
<#head>
<#meta charset="utf-8">
<#title>Error<#/title>
<#/head>
<#body>
<#pre>Internal Server Error<#/pre>
<#/body>
<#/html>
(I've added a # in the bracket to show more info)
SELINUX is disabled, firewall is open and listening port 8000, although netstat doesn't show that parsoid service is using the port
[root@wiki-server BlueSpice3]# netstat -aon | grep 8000
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN off (0.00/0/0)
httpd is configured with SSL domain certificate and https enabled.
Why does this fail?