This repository was archived by the owner on Jul 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig.yaml
More file actions
80 lines (76 loc) · 2.53 KB
/
config.yaml
File metadata and controls
80 lines (76 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Basic mediawiki-node-services config, running the following services in a
# single process:
#
# - RESTBase
# - Parsoid
services:
- name: restbase
app_base_path: ./node_modules/restbase
conf:
port: 7231
salt: secret
default_page_size: 125
user_agent: RESTBase
ui_name: RESTBase
ui_url: https://www.mediawiki.org/wiki/RESTBase
ui_title: RESTBase docs
spec:
x-request-filters:
- path: lib/security_response_header_filter.js
x-sub-request-filters:
- type: default
name: http
options:
allow:
- pattern: '{env(MEDIAWIKI_API_URL,http://localhost/w/api.php)}'
forward_headers: true
- pattern: http://localhost:8142
forward_headers: true
- pattern: /^https?:\/\//
paths:
/{domain:localhost}:
x-modules:
- path: projects/example.yaml
options: &default_options
action:
# XXX Check API URL!
apiUriTemplate: '{env(MEDIAWIKI_API_URL,http://localhost/w/api.php)}'
baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}"
parsoid:
# XXX Check Parsoid URL!
host: http://localhost:8142
table:
backend: sqlite
dbname: /data/restbase_tables.sqlite3
pool_idle_timeout: 20000
retry_delay: 250
retry_limit: 10
show_sql: false
mathoid:
host: '{env(MATHOID_HOST_PORT,http://localhost:10044)}'
mobileapps:
host: '{env(MOBILEAPPS_URI,http://localhost:8888)}'
citoid:
host: '{env(CITOID_URI,http://localhost:1970)}'
purged_cache_control: s-maxage=864000, max-age=86400
/{domain:wikimedia.org}:
x-modules:
- path: projects/wikimedia.org.yaml
options: *default_options
- name: parsoid
entrypoint: apiServiceWorker
conf:
useSelser: true
serverPort: 8142
serverInterface: 0.0.0.0
debug: false
mwApis:
- domain: localhost
prefix: localhost
uri: '{env(MEDIAWIKI_API_URL,http://localhost/w/api.php)}'
# Finally, a standard service-runner config.
info:
name: mediawiki-node-services
logging:
level: info
num_workers: 1