InternationalScratchWiki / ArcCDNIntegration

Enable Arc CDN on a MediaWiki installation. [NOTE: The Scratch Wiki no longer uses this extension due to trust and privacy concerns with Arc]
MIT License
0 stars 0 forks source link

ArcCDNIntegration

Enable Arc CDN on a MediaWiki installation.

Configuration

Find your Arc widget ID. Arc tells you to add something like this to your site:

<script async src="https://arc.io/widget.min.js#(WIDGET ID)"></script>

Find the (WIDGET ID) and configure the extension with it:

wfLoadExtension( 'ArcCDNIntegration' );
$wgArcWidgetID = '(WIDGET ID)';

Optionally, you can choose to only enable Arc CDN for a certain proportion of users:

$wgArcRolloutPercentage = 10; // 10% of users will be involved

Finally, serve arc-sw.js from your web root, either by reverse proxying to that link or just copying and serving it yourself.