Advertisement
Guest User

Parsoid Configuration

a guest
Mar 9th, 2017
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.59 KB | None | 0 0
  1. # This is a sample configuration file
  2. #
  3. # Also see:
  4. # - `npm start -- -h` for more information about passing config files via
  5. #   the commandline.
  6. # - lib/config/ParsoidConfig.js for all the properties that you can configure
  7. #   here. Not all properties are documented here.
  8.  
  9. worker_heartbeat_timeout: 300000
  10.  
  11. logging:
  12.    #level: info
  13.     level: trace
  14.  
  15. #metrics:
  16.     type: log
  17.  
  18. services:
  19.   - module: ../src/lib/index.js
  20.     entrypoint: apiServiceWorker
  21.     conf:
  22.        # For backwards compatibility, and to continue to support non-static
  23.         # configs for the time being, optionally provide a path to a
  24.         # localsettings.js file.  See localsettings.example.js
  25.         #localsettings: /etc/mediawiki/parsoid/settings.js
  26.  
  27.         # Set your own user-agent string
  28.         # Otherwise, defaults to:
  29.         #   'Parsoid/<current-version-defined-in-package.json>'
  30.         #userAgent: 'My-User-Agent-String'
  31.  
  32.         # Configure Parsoid to point to your MediaWiki instances.
  33.         mwApis:
  34.        #- # This is the only required parameter,
  35.           # the URL of you MediaWiki API endpoint.
  36.           uri: 'http://localhost/api.php'
  37.           # The "domain" is used for communication with Visual Editor
  38.           # and RESTBase.  It defaults to the hostname portion of
  39.           # the `uri` property below, but you can manually set it
  40.           # to an arbitrary string.
  41.           domain: 'localhost'  # optional
  42.           #prefix: 'localhost'
  43.           # To specify a proxy (or proxy headers) specific to this prefix
  44.           # (which overrides defaultAPIProxyURI). Alternatively, set `proxy`
  45.           # to `null` to override and force no proxying when a default proxy
  46.           # has been set.
  47.           #proxy:
  48.           #    uri: 'http://my.proxy:1234/'
  49.           #    headers:  # optional
  50.           #        'X-Forwarded-Proto': 'https'
  51.  
  52.         # We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly
  53.         # for other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks',
  54.         # 'enwikivoyage' etc.
  55.         # The default for this is false. Uncomment the line below if you want
  56.         # to load WMF's config for wikipedias, etc.
  57.         #loadWMF: true
  58.  
  59.         # A default proxy to connect to the API endpoints.
  60.         # Default: undefined (no proxying).
  61.         # Overridden by per-wiki proxy config in setMwApi.
  62.         #defaultAPIProxyURI: 'http://proxy.example.org:8080'
  63.  
  64.         # Enable debug mode (prints extra debugging messages)
  65.         debug: true
  66.  
  67.         # Use the PHP preprocessor to expand templates via the MW API (default true)
  68.         #usePHPPreProcessor: false
  69.  
  70.         # Use selective serialization (default false)
  71.         #useSelser: true
  72.  
  73.         # Allow cross-domain requests to the API (default '*')
  74.         # Sets Access-Control-Allow-Origin header
  75.         # disable:
  76.         #allowCORS: false
  77.         # restrict:
  78.         #allowCORS: 'some.domain.org'
  79.  
  80.         # Allow override of port/interface:
  81.         #serverPort: 8000
  82.         #serverInterface: '127.0.0.1'
  83.  
  84.         # Enable linting of some wikitext errors to the log
  85.         #linting: true
  86.         # Send lint errors to MW API instead of to the log
  87.         #linterSendAPI: false
  88.  
  89.         # Require SSL certificates to be valid (default true)
  90.         # Set to false when using self-signed SSL certificates
  91.         #strictSSL: false
  92.  
  93.         # Use a different server for CSS style modules.
  94.         # Leaving it undefined (the default) will use the same URI as the MW API,
  95.         # changing api.php for load.php.
  96.         #modulesLoadURI: 'http://example.org/load.php'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement