-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
4,002 additions
and
2,325 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
extends: 'eslint-config-node-services' | ||
extends: 'eslint-config-wikimedia' | ||
|
||
parserOptions: | ||
ecmaVersion: 10 | ||
|
||
env: | ||
node: true | ||
|
||
rules: | ||
indent: | ||
- error | ||
- 4 | ||
- SwitchCase: 1 | ||
MemberExpression: off | ||
space-in-parens: [error, never] | ||
no-multi-spaces: off | ||
no-multiple-empty-lines: off | ||
one-var: off | ||
array-bracket-spacing: off | ||
computed-property-spacing: off | ||
no-unused-vars: [error, {args: none}] | ||
no-underscore-dangle: off | ||
comma-dangle: off | ||
camelcase: off | ||
key-spacing: off | ||
space-before-function-paren: off | ||
quote-props: off | ||
operator-linebreak: off | ||
max-statements-per-line: off | ||
brace-style: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"exclude": [ | ||
"test/**", | ||
"lib/util.js", | ||
"lib/kafka.js", | ||
"lib/swagger-ui.js", | ||
"app.js" | ||
], | ||
"reporter": [ | ||
"text", | ||
"html" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
language: node_js | ||
|
||
sudo: false | ||
dist: xenial | ||
|
||
language: node_js | ||
node_js: | ||
- "6" | ||
- "8" | ||
- "node" | ||
- "10" | ||
|
||
after_success: npm run coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,51 @@ | ||
# EventGate example config file. | ||
# | ||
# Configures the service-runner as well as the EventGate application. | ||
# See: https://github.com/wikimedia/service-runner#config-loading | ||
|
||
# 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: 0 | ||
|
||
# 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: 250 | ||
worker_heap_limit_mb: 200 | ||
|
||
# Logger info | ||
logging: | ||
level: trace | ||
# streams: | ||
# # Use gelf-stream -> logstash | ||
# - type: gelf | ||
# host: logstash1003.eqiad.wmnet | ||
# port: 12201 | ||
|
||
# Statsd metrics reporter | ||
metrics: | ||
#type: log | ||
#host: localhost | ||
#port: 8125 | ||
level: info | ||
|
||
services: | ||
- name: service-template-node | ||
- name: eventgate-dev | ||
# 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: 6927 | ||
# interface: localhost # uncomment to only listen on localhost | ||
port: 8192 | ||
# Events can be large; increase max body size | ||
max_body_size: 4mb | ||
|
||
# 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 | ||
mwapi_req: | ||
method: post | ||
uri: https://{{domain}}/w/api.php | ||
headers: | ||
user-agent: '{{user-agent}}' | ||
body: '{{ default(request.query, {}) }}' | ||
# the template used for contacting RESTBase | ||
restbase_req: | ||
method: '{{request.method}}' | ||
uri: https://{{domain}}/api/rest_v1/{+path} | ||
query: '{{ default(request.query, {}) }}' | ||
headers: '{{request.headers}}' | ||
body: '{{request.body}}' | ||
user_agent: eventgate-dev | ||
|
||
eventgate_factory_module: '../lib/factories/dev-eventgate' | ||
|
||
# This field in each event will be used to extract a | ||
# (possibly relative) schema uri. The default is $schema. | ||
# An array of field names will cause EventGate to search for | ||
# fields by these names in each event, using the first match. | ||
schema_uri_field: $schema | ||
|
||
# If set, these URIs will be prepended to any relative schema URI | ||
# extracted from each event's schema_field. The resulting URLs will | ||
# be searched until a schema is found. Change this | ||
# to match paths to your local schema repositories. | ||
schema_base_uris: [ | ||
https://schema.wikimedia.org/repositories/primary/jsonschema, | ||
https://schema.wikimedia.org/repositories/secondary/jsonschema | ||
] | ||
|
||
# output_path: ./output.json |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.