mobrovac added a comment.
@Pablo-WMDE all you have to do is have the request be of this form:
URI: http://appservers.discovery.wmnet/{+your_path_here}
headers:
Host: www.wikidata.org
The curl you are trying does not work because you are executing it outside
the production environment and then Varnish strips out the `Host` header. All
of the services work this way in prod, cf. e.g. the MCS config for making
requests to MediaWiki
<https://github.com/wikimedia/mediawiki-services-mobileapps-deploy/blob/b8f04dae92dd819222dc429d9cc64b285915e1bc/scap/templates/config.yaml.j2#L80>.
TASK DETAIL
https://phabricator.wikimedia.org/T220402
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: mobrovac
Cc: Krenair, fsero, mobrovac, Matthias_Geisler_WMDE, Pablo-WMDE, Dzahn,
Addshore, Tarrow, Lea_WMDE, WMDE-leszek, Jakob_WMDE, Aklapper, akosiaris,
E.S.A-Sheild, darthmon_wmde, alaa_wmde, joker88john, Legado_Shulgin, CucyNoiD,
Nandana, NebulousIris, thifranc, AndyTan, Gaboe420, Versusxo,
Majesticalreaper22, Giuliamocci, Davinaclare77, Adrian1985, Qtn1293, Cpaulf30,
Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic,
Adik2382, Th3d3v1ls, Hfbn0, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906,
Lewizho99, Zppix, Maathavan, _jensen, rosalieper, Liudvikas, Wong128hk, Eevans,
thcipriani, Hardikj, Wikidata-bugs, aude, Lydia_Pintscher, dduvall, faidon,
Jdforrester-WMF, Mbch331, Jay8g, fgiunchedi
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs