File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ MONGOMS_PLATFORM=linux
7575MONGOMS_ARCH = x64
7676MONGOMS_VERSION = 3
7777MONGOMS_DEBUG = 1 # also available case- insensitive values: " on" " yes" " true"
78+ MONGOMS_DOWNLOAD_MIRROR = url # your mirror url to download the mongodb binary
7879` ` `
7980
8081### Replica Set start:
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export default class MongoBinaryDownloadUrl {
2525
2626 async getDownloadUrl ( ) : Promise < string > {
2727 const archive = await this . getArchiveName ( ) ;
28- return `https://fastdl.mongodb.org/${ this . platform } /${ archive } ` ;
28+ return `${ process . env ?. MONGOMS_DOWNLOAD_MIRROR || 'https://fastdl.mongodb.org' } /
29+ ${ this . platform } /${ archive } ` ;
2930 }
3031
3132 async getArchiveName ( ) : Promise < string > {
You can’t perform that action at this time.
0 commit comments