[MediaWiki-commits] [Gerrit] mediawiki...cxserver[master]: Add default mwapi_req template configuration to config.yaml

2017-08-23 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/373051 )

Change subject: Add default mwapi_req template configuration to config.yaml
..


Add default mwapi_req template configuration to config.yaml

Bug: T173038
Change-Id: Iaeb6bf7a6124d51e2e6599a641f195a11912be8f
---
M config.dev.yaml
M config.prod.yaml
2 files changed, 16 insertions(+), 0 deletions(-)

Approvals:
  KartikMistry: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Nikerabbit: Looks good to me, approved



diff --git a/config.dev.yaml b/config.dev.yaml
index f171eef..055d4a0 100644
--- a/config.dev.yaml
+++ b/config.dev.yaml
@@ -48,6 +48,14 @@
   #   - domain1.com
   #   - domain2.org
   user_agent: cxserver
+  mwapi_req:
+body: "{{request.body}}"
+query: "{{ default(request.query, {}) }}"
+headers:
+  host: "{{request.params.domain}}"
+  user-agent: "{{user-agent}}"
+method: post
+uri: "https://{{domain}}/w/api.php;
   restbase_req:
 method: '{{request.method}}'
 uri: https://{{domain}}/api/rest_v1/{+path}
diff --git a/config.prod.yaml b/config.prod.yaml
index 362ab26..c05a7ab 100644
--- a/config.prod.yaml
+++ b/config.prod.yaml
@@ -48,6 +48,14 @@
   #   - domain1.com
   #   - domain2.org
   user_agent: cxserver
+  mwapi_req:
+body: "{{request.body}}"
+query: "{{ default(request.query, {}) }}"
+headers:
+  host: "{{request.params.domain}}"
+  user-agent: "{{user-agent}}"
+method: post
+uri: "https://{{domain}}/w/api.php;
   restbase_req:
 method: '{{request.method}}'
 uri: https://{{domain}}/api/rest_v1/{+path}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iaeb6bf7a6124d51e2e6599a641f195a11912be8f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/cxserver
Gerrit-Branch: master
Gerrit-Owner: Santhosh 
Gerrit-Reviewer: KartikMistry 
Gerrit-Reviewer: Nikerabbit 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...cxserver[master]: Add default mwapi_req template configuration to config.yaml

2017-08-22 Thread Santhosh (Code Review)
Santhosh has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373051 )

Change subject: Add default mwapi_req template configuration to config.yaml
..

Add default mwapi_req template configuration to config.yaml

Bug: T173038
Change-Id: Iaeb6bf7a6124d51e2e6599a641f195a11912be8f
---
M config.dev.yaml
M config.prod.yaml
2 files changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver 
refs/changes/51/373051/1

diff --git a/config.dev.yaml b/config.dev.yaml
index f171eef..055d4a0 100644
--- a/config.dev.yaml
+++ b/config.dev.yaml
@@ -48,6 +48,14 @@
   #   - domain1.com
   #   - domain2.org
   user_agent: cxserver
+  mwapi_req:
+body: "{{request.body}}"
+query: "{{ default(request.query, {}) }}"
+headers:
+  host: "{{request.params.domain}}"
+  user-agent: "{{user-agent}}"
+method: post
+uri: "https://{{domain}}/w/api.php;
   restbase_req:
 method: '{{request.method}}'
 uri: https://{{domain}}/api/rest_v1/{+path}
diff --git a/config.prod.yaml b/config.prod.yaml
index 362ab26..c05a7ab 100644
--- a/config.prod.yaml
+++ b/config.prod.yaml
@@ -48,6 +48,14 @@
   #   - domain1.com
   #   - domain2.org
   user_agent: cxserver
+  mwapi_req:
+body: "{{request.body}}"
+query: "{{ default(request.query, {}) }}"
+headers:
+  host: "{{request.params.domain}}"
+  user-agent: "{{user-agent}}"
+method: post
+uri: "https://{{domain}}/w/api.php;
   restbase_req:
 method: '{{request.method}}'
 uri: https://{{domain}}/api/rest_v1/{+path}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaeb6bf7a6124d51e2e6599a641f195a11912be8f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/cxserver
Gerrit-Branch: master
Gerrit-Owner: Santhosh 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits