CentOS7 8000 端口已经打开
SELINUX 也是关闭状态
MediaWiki 版本 1.29.2
可以显示 parsoid 正在运行,但是使用编辑器会出现 404 及 curl error 7 这两个错误
下面附上相关配置文件的片段,不知道有没有熟悉 MW 的大佬看看是什么情况,昨晚通宵折腾到现在了
LocalSettings.php:
require_once "$IP/extensions/VisualEditor/VisualEditor.php";
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgVisualEditorNamespaces=array_merge($wgContentNamespaces,array( NS_USER ));
localsettings.js:
'use strict';
exports.setup = function(parsoidConfig) {
parsoidConfig.setMwApi('fgo', { uri: 'http://wiki.riesa.me/api.php' });
};
config.yaml:
mwApis: - # This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'http://wiki.riesa.me/api.php'
# The "domain" is used for communication with Visual Editor
# and RESTBase. It defaults to the hostname portion of
# the `uri` property above, but you can manually set it
# to an arbitrary string. It must match the "domain" set
# in $wgVirtualRestConfig.
domain: 'wiki.riesa.me' # optional
# To specify a proxy (or proxy headers) specific to this prefix
# (which overrides defaultAPIProxyURI). Alternatively, set `proxy`
# to `null` to override and force no proxying when a default proxy
# has been set.
#proxy:
# uri: 'http://my.proxy:1234/'
# headers: # optional
# 'X-Forwarded-Proto': 'https'
# See below, defaults to true.
#strictSSL: false
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.