mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
Added new database rustydb (#6632)
Co-authored-by: SamTv12345 <samtv12345@samtv12345.com>
This commit is contained in:
parent
d010d53195
commit
d4cbbf18e0
7 changed files with 245 additions and 14 deletions
|
@ -169,11 +169,11 @@ exports.authenticationMethod = 'sso'
|
|||
/*
|
||||
* The Type of the database
|
||||
*/
|
||||
exports.dbType = 'dirty';
|
||||
exports.dbType = 'rustydb';
|
||||
/**
|
||||
* This setting is passed with dbType to ueberDB to set up the database
|
||||
*/
|
||||
exports.dbSettings = {filename: path.join(exports.root, 'var/dirty.db')};
|
||||
exports.dbSettings = {filename: path.join(exports.root, 'var/rusty.db')};
|
||||
|
||||
/**
|
||||
* The default Text of a new pad
|
||||
|
@ -941,6 +941,11 @@ exports.reloadSettings = () => {
|
|||
logger.warn(`${dirtyWarning} File location: ${exports.dbSettings.filename}`);
|
||||
}
|
||||
|
||||
if (exports.dbType === 'rustydb') {
|
||||
exports.dbSettings.filename = absolutePaths.makeAbsolute(exports.dbSettings.filename);
|
||||
logger.warn(`File location: ${exports.dbSettings.filename}`);
|
||||
}
|
||||
|
||||
if (exports.ip === '') {
|
||||
// using Unix socket for connectivity
|
||||
logger.warn('The settings file contains an empty string ("") for the "ip" parameter. The ' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue