1 # DO NOT EDIT - This file is being maintained by Chef
3 worker_heartbeat_timeout: 300000
12 - module: src/lib/index.js
13 entrypoint: apiServiceWorker
15 # For backwards compatibility, and to continue to support non-static
16 # configs for the time being, optionally provide a path to a
17 # localsettings.js file. See localsettings.example.js
18 #localsettings: ./localsettings.js
20 # Set your own user-agent string
21 # Otherwise, defaults to:
22 # 'Parsoid/<current-version-defined-in-package.json>'
23 #userAgent: 'My-User-Agent-String'
25 # Configure Parsoid to point to your MediaWiki instances.
27 # - # This is the only required parameter,
28 # the URL of you MediaWiki API endpoint.
29 # uri: 'http://localhost/w/api.php'
30 # The "domain" is used for communication with Visual Editor
31 # and RESTBase. It defaults to the hostname portion of
32 # the `uri` property below, but you can manually set it
33 # to an arbitrary string.
34 # domain: 'localhost' # optional
35 # To specify a proxy (or proxy headers) specific to this prefix
36 # (which overrides defaultAPIProxyURI). Alternatively, set `proxy`
37 # to `null` to override and force no proxying when a default proxy
40 # uri: 'http://my.proxy:1234/'
42 # 'X-Forwarded-Proto': 'https'
43 <% node[:mediawiki][:sites].keys.sort.each do |site_url| -%>
44 - # This is the only required parameter,
45 uri: 'https://<%= site_url %>/w/api.php'
48 # We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly
49 # for other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks',
51 # The default for this is false. Uncomment the line below if you want
52 # to load WMF's config for wikipedias, etc.
55 # A default proxy to connect to the API endpoints.
56 # Default: undefined (no proxying).
57 # Overridden by per-wiki proxy config in setMwApi.
58 #defaultAPIProxyURI: 'http://proxy.example.org:8080'
60 # Enable debug mode (prints extra debugging messages)
63 # Use the PHP preprocessor to expand templates via the MW API (default true)
64 #usePHPPreProcessor: false
66 # Use selective serialization (default false)
69 # Allow cross-domain requests to the API (default '*')
70 # Sets Access-Control-Allow-Origin header
74 #allowCORS: 'some.domain.org'
76 # Allow override of port/interface:
78 #serverInterface: '127.0.0.1'
80 # Enable linting of some wikitext errors to the log
82 # Send lint errors to MW API instead of to the log
85 # Require SSL certificates to be valid (default true)
86 # Set to false when using self-signed SSL certificates
89 # Use a different server for CSS style modules.
90 # Leaving it undefined (the default) will use the same URI as the MW API,
91 # changing api.php for load.php.
92 #modulesLoadURI: 'http://example.org/load.php'