Browse Source

Add parsoid image & configuration

mw_32
Adrian Malacoda 2 months ago
parent
commit
829a51384b
3 changed files with 18 additions and 0 deletions
  1. 5
    0
      configuration/MWSettings.php
  2. 7
    0
      configuration/php-fpm-pool.conf
  3. 6
    0
      docker-compose.yml

+ 5
- 0
configuration/MWSettings.php 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'
);

+ 7
- 0
configuration/php-fpm-pool.conf 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:

+ 6
- 0
docker-compose.yml 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

Loading…
Cancel
Save