Skip to content

Commit

Permalink
Use https protocol for URLs for config mirror
Browse files Browse the repository at this point in the history
example.org is used mirror URL as an example, not to make access to
a (potential) third-party domain.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
  • Loading branch information
tnir committed Jul 15, 2022
1 parent db374bc commit 31230f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bundler/lib/bundler/man/bundle-config.1
Expand Up @@ -342,13 +342,13 @@ bundle config set \-\-global mirror\.SOURCE_URL MIRROR_URL
.IP "" 0
.
.P
For example, to use a mirror of rubygems\.org hosted at rubygems\-mirror\.org:
For example, to use a mirror of https://rubygems\.org hosted at https://example\.org:
.
.IP "" 4
.
.nf

bundle config set \-\-global mirror\.http://rubygems\.org http://rubygems\-mirror\.org
bundle config set \-\-global mirror\.https://rubygems\.org https://example\.org
.
.fi
.
Expand Down
4 changes: 2 additions & 2 deletions bundler/lib/bundler/man/bundle-config.1.ronn
Expand Up @@ -321,9 +321,9 @@ mirror to fetch gems.

bundle config set --global mirror.SOURCE_URL MIRROR_URL

For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org:
For example, to use a mirror of https://rubygems.org hosted at https://example.org:

bundle config set --global mirror.http://rubygems.org http://rubygems-mirror.org
bundle config set --global mirror.https://rubygems.org https://example.org

Each mirror also provides a fallback timeout setting. If the mirror does not
respond within the fallback timeout, Bundler will try to use the original
Expand Down

0 comments on commit 31230f8

Please sign in to comment.