Add parsoid image & configuration

This commit is contained in:
2019-06-15 18:24:40 -05:00
parent d8dd54dc9f
commit 829a51384b
3 changed files with 18 additions and 0 deletions

View File

@ -236,3 +236,8 @@ require_once("{$IP}/extensions/Auth_SMF.php");
wfLoadExtension("VisualEditor");
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => getenv('GCL_PARSOID_URL') ?: 'http://parsoid:8000',
'domain' => getenv('GCL_PARSOID_DOMAIN') ?: 'glitchcity',
//'prefix' => getenv('GCL_PARSOID_PREFIX') ?: 'glitchcity'
);

View File

@ -227,6 +227,13 @@ env[GCL_WIKI_URL] = $GCL_WIKI_URL
; caching
env[GCL_MEMCACHED_HOST] = $GCL_MEMCACHED_HOST
; dev mode
env[GCL_DEV] = $GCL_DEV
; VisualEditor
env[GCL_PARSOID_URL] = $GCL_PARSOID_URL
env[GCL_PARSOID_DOMAIN] = $GCL_PARSOID_DOMAIN
; Additional php.ini defines, specific to this pool of workers. These settings
; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI:

View File

@ -20,6 +20,7 @@ services:
links:
- db
- cache
- parsoid
environment:
GCL_DB_HOST: db
GCL_DB_NAME: glitchcity
@ -32,3 +33,8 @@ services:
GCL_SMTP_USER: no-reply@monarch-pass.net
#GCL_SMTP_PASSWORD: smtp-password-here
GCL_DEV: "true"
GCL_PARSOID_DOMAIN: web
parsoid:
image: thenets/parsoid:0.10
environment:
PARSOID_DOMAIN_web: http://web/w/api.php