Wikimedia GitLab Content Proxy

A reverse proxy to serve gitlab.wikimedia.org files with appropriate mime types so they can be imported by mw.loader.load.

Usage

https://gitlab-content.toolforge.org/{REPO}/-/raw/{PATH}?mime={MIME}&maxage={MAXAGE}

{REPO}
gitlab.wikimedia.org repo name
{PATH}
path to file within the repo including branch name or commit hash
{MIME}
mime type to apply to the content (default: text/plain)
{MAXAGE}
Set the max-age HTTP cache control header to this many seconds. Errors are never cached. (optional)

The URL format matches gitlab's internal URLs for raw content. This should help folks find the right URL by browsing in gitlab.wikimedia.org, changing the hostname to gitlab-content.toolforge.org, and adding the desired mime type specification.

Example: https://gitlab-content.toolforge.org/toolforge-repos/gitlab-content/-/raw/main/main.go?mime=text/plain;+charset=utf-8&maxage=86400