MediaWiki

From Y Wiki
Revision as of 16:58, 30 July 2024 by Yba (talk | contribs) (Created page with "== Using Cloudflare R2 == <syntaxhighlight lang="php" line> //The url used for the API (PutObject, etc.) $wgFileBackends['s3']['endpoint'] = 'https://my-custom-url'; //The url used for showing images. $1 is translated to the bucket name. $wgAWSBucketDomain = '$1.my-custom-url'; </syntaxhighlight> source: https://github.com/edwardspec/mediawiki-aws-s3/blob/master/README.md")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using Cloudflare R2

//The url used for the API (PutObject, etc.)
$wgFileBackends['s3']['endpoint'] = 'https://my-custom-url';
//The url used for showing images. $1 is translated to the bucket name.
$wgAWSBucketDomain = '$1.my-custom-url';

source: https://github.com/edwardspec/mediawiki-aws-s3/blob/master/README.md