Mobrovac has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/364902 )

Change subject: Config: No proxy and fix WDQS' URI
......................................................................

Config: No proxy and fix WDQS' URI

The service does not contact any external entities, so do not expose the
proxy setting to it at all.

The Wikidata Query Service allows POSTs only on its /sparql end point,
so use that one when querying it.

Bug: T165760
Change-Id: I1cc06cc4b3ec1175efbe734bcd2757db24a79691
---
M scap/templates/config.yaml.j2
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/services/recommendation-api/deploy 
refs/changes/02/364902/1

diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2
index 3dfcfc4..d3591fe 100644
--- a/scap/templates/config.yaml.j2
+++ b/scap/templates/config.yaml.j2
@@ -50,7 +50,7 @@
       # 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: <%= proxy if proxy else '' %>
+      # proxy: <%= proxy if proxy else '' %>
       # the list of domains for which not to use the proxy defined above
       # no_proxy_list:
       #   - domain1.com
@@ -83,7 +83,7 @@
         body: '{{request.body}}'
       wdqsapi_req:
         method: 'post'
-        uri: <%= wdqs_uri %>
+        uri: <%= wdqs_uri %>/sparql
         headers:
           user-agent: '{{user-agent}}'
         body:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1cc06cc4b3ec1175efbe734bcd2757db24a79691
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/recommendation-api/deploy
Gerrit-Branch: master
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>

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

Reply via email to