From f9c06ed449fa5d1ba444fdab047d24c602c3a8d3 Mon Sep 17 00:00:00 2001 From: jakoch Date: Tue, 9 Aug 2016 19:55:23 +0200 Subject: [PATCH] updated docu for `PHANTOMJS_CDNURL` ref. https://github.com/jakoch/phantomjs-installer/issues/35 --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dfb7b9b..c74a34b 100644 --- a/README.md +++ b/README.md @@ -113,15 +113,24 @@ Possible values for ## Downloading from a mirror -The environment and server variables `PHANTOMJS_CDNURL` enables you to override the default download -location of the PhantomJS binary file. The default download location is Bitbucket: - - `https://bitbucket.org/ariya/phantomjs/downloads/` +The environment and server variable `PHANTOMJS_CDNURL` enables you to override +the default download location of the PhantomJS binary file. -Possible values for `PHANTOMJS_CDNURL` are: +The default download location is Bitbucket: `https://bitbucket.org/ariya/phantomjs/downloads/`. +You don't need to set it explicitly. It's used, when `CDNURL` is not set. + +You might use one of the following mirror URLs as a value for `PHANTOMJS_CDNURL`: - `https://cnpmjs.org/downloads/` - USA, San Mateo (47.88.189.193) - `https://npm.taobao.org/mirrors/phantomjs/` - China, Hangzhou (114.55.80.225) - `https://github.com/Medium/phantomjs/` - USA, San Francisco (192.30.253.113) +This list of mirrors is not complete. If you know another mirror, please don't hesitate to add it here. + +The mirror URLs are also not hardcoded, except for the Github URL. +This enables you to point to any PhantomJS mirror or download folder you like. +For instance, you could point to the URL of the download folder of your company, where the binaries are stored: +`PHANTOMJS_CDNURL=https://cdn.company.com/downloads/phantomjs/`. + ## Automatic download retrying with version lowering on 404 In case downloading an archive fails with HttpStatusCode 404 (resource not found),