]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mediawiki/templates/default/parsoid-config.yaml.erb
Add tile HTTPS address to external image whitelist
[chef.git] / cookbooks / mediawiki / templates / default / parsoid-config.yaml.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 worker_heartbeat_timeout: 300000
4
5 logging:
6     level: info
7
8 #metrics:
9 #    type: log
10
11 services:
12   - module: src/lib/index.js
13     entrypoint: apiServiceWorker
14     conf:
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
19
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'
24
25         # Configure Parsoid to point to your MediaWiki instances.
26         mwApis:
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
38           # has been set.
39           #proxy:
40           #    uri: 'http://my.proxy:1234/'
41           #    headers:  # optional
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'
46 <% end -%>
47
48         # We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly
49         # for other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks',
50         # 'enwikivoyage' etc.
51         # The default for this is false. Uncomment the line below if you want
52         # to load WMF's config for wikipedias, etc.
53         #loadWMF: true
54
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'
59
60         # Enable debug mode (prints extra debugging messages)
61         #debug: true
62
63         # Use the PHP preprocessor to expand templates via the MW API (default true)
64         #usePHPPreProcessor: false
65
66         # Use selective serialization (default false)
67         useSelser: true
68
69         # Allow cross-domain requests to the API (default '*')
70         # Sets Access-Control-Allow-Origin header
71         # disable:
72         #allowCORS: false
73         # restrict:
74         #allowCORS: 'some.domain.org'
75
76         # Allow override of port/interface:
77         #serverPort: 8000
78         #serverInterface: '127.0.0.1'
79
80         # Enable linting of some wikitext errors to the log
81         #linting: true
82         # Send lint errors to MW API instead of to the log
83         #linterSendAPI: false
84
85         # Require SSL certificates to be valid (default true)
86         # Set to false when using self-signed SSL certificates
87         #strictSSL: false
88
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'