Mholloway has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/280086

Change subject: Add beta cluster config
......................................................................

Add beta cluster config

Add config file so beta cluster uses the internal rather than the public
RESTBase URL.

On the beta cluster, config.yaml will need to be changed to link to the
new labs config file rather than config.dev.yaml as it does currently.

Change-Id: Ibd9de8488cece8df1a5cd1ac1431c54d207afb95
---
A config.labs.yaml
1 file changed, 73 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/86/280086/1

diff --git a/config.labs.yaml b/config.labs.yaml
new file mode 100644
index 0000000..d373e37
--- /dev/null
+++ b/config.labs.yaml
@@ -0,0 +1,73 @@
+# 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
+
+# Logger info
+logging:
+  level: trace
+  streams:
+  # XXX: Use gelf-stream -> logstash
+  - type: gelf
+    host: deployment-logstash2.deployment-prep.eqiad.wmflabs
+    port: 12201
+
+# Statsd metrics reporter
+metrics:
+  #type: log
+  #host: localhost
+  #port: 8125
+
+services:
+  - name: service-mobileapp-node
+    # 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
+      # more per-service config settings
+      # the location of the spec, defaults to spec.yaml if not specified
+      # spec: ./spec.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
+      restbase_req:
+        uri: 
http://deployment-restbase01.eqiad.wmflabs:7231/{domain}/v1/page/html/{title}
+        headers:
+          user-agent: WMF Mobile Content Service labs
+          accept: text/html; charset=utf-8; 
profile="mediawiki.org/specs/html/1.2.0"
+      mwapi_req:
+        method: post
+        uri: http://{domain}/w/api.php
+        headers:
+          user-agent: WMF Mobile Content Service labs
+      # whether to print extra debug info
+      debug: true

-- 
To view, visit https://gerrit.wikimedia.org/r/280086
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibd9de8488cece8df1a5cd1ac1431c54d207afb95
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to