-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.prod.yaml
executable file
·100 lines (96 loc) · 3.51 KB
/
config.prod.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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: ncpu
# Log error messages and gracefully restart a worker if v8 reports that it
# uses more heap (note: not RSS) than this many mb.
worker_heap_limit_mb: 500
# Logger info
logging:
level: warn
streams:
# Use syslog -> logstash
- type: syslog
host: localhost
port: 10514
prefix: "@cee: "
name: node
# Metrics reporters
metrics:
- type: prometheus
port: 9102
# - type: statsd
# host: localhost
# port: 8125
services:
- name: citoid
# a relative path or the name of an npm package, if different from name
module: ./app.js
# optionally, a version constraint of the npm package
# version: ^0.4.0
# per-service config
conf:
port: 1970
# interface: localhost # uncomment to only listen on localhost
# more per-service config settings
# the location of the spec, defaults to spec.yaml if not specified
# spec: ./spec.template.yaml
# allow cross-domain requests to the API (default '*')
cors: "*"
# to disable use:
# cors: false
# to restrict to a particular domain, use:
# cors: restricted.domain.org
# content for the CSP headers
# csp: false # uncomment this line to disable sending them
# URL of the outbound proxy to use (complete with protocol)
# proxy: http://my.proxy.org:8080
# the list of domains for which not to use the proxy defined above
# no_proxy_list:
# - domain1.com
# - domain2.org
# the list of incoming request headers that can be logged; if left empty,
# the following headers are allowed: cache-control, content-length,
# content-type, if-match, user-agent, x-request-id
# log_header_whitelist:
# - cache-control
# - content-length
# - content-type
# - if-match
# - user-agent
# - x-request-id
# the user agent to use when issuing requests
# user_agent: service-template-node
# the template used for contacting the MW API
# enable use of wayback machine from archive.org if initial url request fails
wayback: true
# enable use of NIH PubMed id converter to add pmids and pmcids to citations
# at the end of a request; defaults to true if undefined
pubmed: false
# enable use of zotero's translation-server service to query for URLs;
# defaults to true if undefined
zotero: true
# URL where to contact Zotero
zoteroInterface: 127.0.0.1
# zotero's server port
zoteroPort: 1969
# whether the proxy should be used to contact zotero
zoteroUseProxy: false
# Contact e-mail address. Used for making CrossRef and PubMed requests
mailto: example@example.com
# Force certain requests to return with partial data using this timeout in milliseconds
timeout: 5000
mwapi_req:
method: post
uri: https://mw-api-int-ro.discovery.wmnet:4446/w/api.php
headers:
host: "{{request.params.domain}}"
user-agent: "{{user-agent}}"
body: "{{ default(request.query, {}) }}"
# the template used for contacting RESTBase
restbase_req:
method: "{{request.method}}"
uri: http://restbase.svc.eqiad.wmnet/{{domain}}/v1/{+path}
query: "{{ default(request.query, {}) }}"
headers: "{{request.headers}}"
body: "{{request.body}}"