This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to https://github.com/cnpm/mirrors Fixes #523 #504 #307
- Loading branch information
Showing
5 changed files
with
8 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* | ||
* Authors: | ||
* dead_horse <[email protected]> | ||
* fengmk2 <[email protected]> (http://fengmk2.github.com) | ||
* fengmk2 <[email protected]> (http://fengmk2.com) | ||
*/ | ||
|
||
'use strict'; | ||
|
@@ -37,6 +37,7 @@ var config = { | |
/* | ||
* server configure | ||
*/ | ||
|
||
registryPort: 7001, | ||
webPort: 7002, | ||
bindingHost: '127.0.0.1', // only binding on 127.0.0.1 for local access | ||
|
@@ -45,6 +46,8 @@ var config = { | |
// if in debug mode, some middleware like limit wont load | ||
// logger module will print to stdout | ||
debug: true, | ||
// page mode, enable on development env | ||
pagemock: process.env.NODE_ENV === 'development', | ||
// session secret | ||
sessionSecret: 'cnpmjs.org test session secret', | ||
// max request json body size | ||
|
@@ -181,15 +184,6 @@ var config = { | |
* sync configs | ||
*/ | ||
|
||
// sync dist config | ||
// sync node.js dist from nodejs.org | ||
noticeSyncDistError: true, | ||
disturl: 'http://nodejs.org/dist', | ||
syncDist: false, | ||
|
||
pythonDisturl: 'https://www.python.org/ftp', | ||
syncPythonDist: false, | ||
|
||
// the official npm registry | ||
// cnpm wont directly sync from this one | ||
// but sometimes will request it for some package infomations | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.