Skip to content

Instantly share code, notes, and snippets.

@danyill
Created November 20, 2018 20:04
Show Gist options
  • Save danyill/5897e39ae896c9bd2a48e6e51549623d to your computer and use it in GitHub Desktop.
Save danyill/5897e39ae896c9bd2a48e6e51549623d to your computer and use it in GitHub Desktop.
parsoid configuration
root@9f85ddc6532d:/var/lib/parsoid# cat config.yaml
# Number of worker processes to spawn.
# Set to 0 to run everything in a single process without clustering.
# Use 'ncpu' to run as many workers as there are CPU units
num_workers: 0
worker_heartbeat_timeout: 300000
logging:
level: info
services:
- module: lib/index.js
entrypoint: apiServiceWorker
conf:
# ParsoidBatchAPI extension
useBatchAPI: true
# 'enwikivoyage' etc.
# The default for this is false. Uncomment the line below if you want
# to load WMF's config for wikipedias, etc.
#loadWMF: true
# A default proxy to connect to the API endpoints.
# Default: undefined (no proxying).
# Overridden by per-wiki proxy config in setMwApi.
#defaultAPIProxyURI: 'http://proxy.example.org:8080'
# Enable debug mode (prints extra debugging messages)
#debug: true
# Use the PHP preprocessor to expand templates via the MW API (default true)
#usePHPPreProcessor: false
# Use selective serialization (default false)
#useSelser: true
# Allow cross-domain requests to the API (default '*')
# Sets Access-Control-Allow-Origin header
# disable:
#allowCORS: false
# restrict:
#allowCORS: 'some.domain.org'
# Allow override of port/interface:
serverPort: 8000
#serverInterface: '127.0.0.1'
# Enable linting of some wikitext errors to the log
#linting: true
# Send lint errors to MW API instead of to the log
#linterSendAPI: false
# Require SSL certificates to be valid (default true)
# Set to false when using self-signed SSL certificates
#strictSSL: false
# Use a different server for CSS style modules.
# Leaving it undefined (the default) will use the same URI as the MW API,
# changing api.php for load.php.
#modulesLoadURI: 'http://example.org/load.php'
# Configure Parsoid to point to your MediaWiki instances.
mwApis:
-
uri: 'http://web/w/api.php'
domain: 'web'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment