54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
// Custom Mongo Express configuration
|
|
module.exports = {
|
|
mongodb: {
|
|
// Connection string for MongoDB
|
|
connectionString: process.env.ME_CONFIG_MONGODB_URL || '',
|
|
|
|
// MongoDB server options
|
|
admin: true,
|
|
|
|
// MongoDB authentication options
|
|
adminUsername: process.env.ME_CONFIG_MONGODB_ADMINUSERNAME || 'admin',
|
|
adminPassword: process.env.ME_CONFIG_MONGODB_ADMINPASSWORD || 'password',
|
|
|
|
// Auth database name
|
|
auth: [
|
|
{
|
|
database: process.env.ME_CONFIG_MONGODB_AUTH_DATABASE || 'admin',
|
|
username: process.env.ME_CONFIG_MONGODB_ADMINUSERNAME || 'admin',
|
|
password: process.env.ME_CONFIG_MONGODB_ADMINPASSWORD || 'password',
|
|
}
|
|
]
|
|
},
|
|
|
|
// Web server options
|
|
site: {
|
|
// Base URL path
|
|
baseUrl: '/',
|
|
|
|
// Web server port
|
|
port: process.env.ME_CONFIG_SITE_PORT || 8081,
|
|
|
|
// Web server host
|
|
host: '0.0.0.0'
|
|
},
|
|
|
|
// Options for basic authentication
|
|
basicAuth: {
|
|
// Disable basic authentication
|
|
username: '',
|
|
password: ''
|
|
},
|
|
|
|
// Other options
|
|
options: {
|
|
// Enable editing
|
|
editMode: true,
|
|
|
|
// Enable admin mode
|
|
adminMode: true
|
|
}
|
|
};
|