GWicke has uploaded a new change for review. https://gerrit.wikimedia.org/r/208313
Change subject: Add x-host-basePath config for /api/rest_v1/ entry point ...................................................................... Add x-host-basePath config for /api/rest_v1/ entry point We now support serving a Swagger spec with the correct basePath for proxied entry points in RESTBase (see https://github.com/wikimedia/restbase/pull/238). This patch configures the correct base path for the WMF setup. Change-Id: Ibf44974229c9ebffeda72aa6b88770b708f4b9c7 --- M modules/restbase/templates/config.yaml.erb 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/13/208313/1 diff --git a/modules/restbase/templates/config.yaml.erb b/modules/restbase/templates/config.yaml.erb index e3d8a61..e6ae818 100644 --- a/modules/restbase/templates/config.yaml.erb +++ b/modules/restbase/templates/config.yaml.erb @@ -57,6 +57,11 @@ license: name: Apache2 url: http://www.apache.org/licenses/LICENSE-2.0 + + # Override the base path for host-based (proxied) requests. In our case, + # we proxy https://{domain}/api/rest_v1/ to the API. + x-host-basePath: /api/rest_v1 + security: # ACLs for public *.wikipedia.org wikis - mediaWikiAuth: -- To view, visit https://gerrit.wikimedia.org/r/208313 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibf44974229c9ebffeda72aa6b88770b708f4b9c7 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: GWicke <gwi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits