Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
/ rewrite-url-follower Public archive

rewrite the tarball URLs in couchdb from one registry to another

License

Notifications You must be signed in to change notification settings

npm/rewrite-url-follower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rewrite URL Follower

Build Status

npm On-Site and npm-registry-couchapp store package URLs in their database. These URLs represent the full canonical path to package tarballs. If the database ends up with the wrong URL for a package it will become inaccessible.

Situations which can result in an invalid URL:

  • the wrong URL was written to the database
  • the URLs contain the external IP address of the registry and the IP has changed
  • the URLs contain the external domain name of the registry and the domain has changed

rewrite-url-follower solves this problem! simply point this tool at your CouchDB database, and it will rewrite the package URL for you.

Usage

rewrite URL to http://10.19.99.196:8080:

rewrite-url-follower rewrite --rewrite=http://10.19.99.196:8080 --host=172.17.0.1 --port=5984

rewrite URL to https://myreg.mydomain.tld:

rewrite-url-follower rewrite --rewrite=https://myreg.mydomain.tld --host=172.17.0.1 --port=5984

get help:

rewrite-url-follower --help
rewrite-url-follower rewrite --help

License

ISC

About

rewrite the tarball URLs in couchdb from one registry to another

Resources

License

Stars

Watchers

Forks

Packages

No packages published