Download api/migrate-mongo-config.js from Jessedbrown/warran: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/Jessedbrown/warran/resolve/main/api/migrate-mongo-config.js
- Command line
-
hf download hf://Jessedbrown/warran/api/migrate-mongo-config.js
-
curl -L -o migrate-mongo-config.js https://huggingface.co/Jessedbrown/warran/resolve/main/api/migrate-mongo-config.js
1.05 kB
| // In this file you can configure migrate-mongo | |
| const config = { | |
| mongodb: { | |
| // TODO Change (or review) the url to your MongoDB: | |
| url: "mongodb://localhost:27017", | |
| // TODO Change this to your database name: | |
| databaseName: "docker-warren", | |
| options: { | |
| useNewUrlParser: true, // removes a deprecation warning when connecting | |
| useUnifiedTopology: true, // removes a deprecating warning when connecting | |
| // connectTimeoutMS: 3600000, // increase connection timeout to 1 hour | |
| // socketTimeoutMS: 3600000, // increase socket timeout to 1 hour | |
| }, | |
| }, | |
| // The migrations dir, can be an relative or absolute path. Only edit this when really necessary. | |
| migrationsDir: "migrations", | |
| // The mongodb collection where the applied changes are stored. Only edit this when really necessary. | |
| changelogCollectionName: "changelog", | |
| // The file extension to create migrations and search for in migration dir | |
| migrationFileExtension: ".js", | |
| }; | |
| // Return the config as a promise | |
| module.exports = config; | |