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 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits