mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-12 18:35:00 +02:00
Add: report whether backup path environment is set
This commit is contained in:
parent
b01ef1c691
commit
37f62d22b6
3 changed files with 10 additions and 1 deletions
|
@ -26,6 +26,7 @@ class ServerSettings {
|
|||
this.rateLimitLoginWindow = 10 * 60 * 1000 // 10 Minutes
|
||||
|
||||
// Backups
|
||||
this.backupPathEnvSet = false
|
||||
this.backupPath = Path.join(global.MetadataPath, 'backups')
|
||||
this.backupSchedule = false // If false then auto-backups are disabled
|
||||
this.backupsToKeep = 2
|
||||
|
@ -188,6 +189,8 @@ class ServerSettings {
|
|||
Logger.info(`[ServerSettings] Using backup path from environment variable ${process.env.BACKUP_PATH}`)
|
||||
this.backupPath = process.env.BACKUP_PATH
|
||||
}
|
||||
|
||||
this.backupPathEnvSet = !!settings.process.env.BACKUP_PATH || false
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
@ -206,6 +209,7 @@ class ServerSettings {
|
|||
rateLimitLoginRequests: this.rateLimitLoginRequests,
|
||||
rateLimitLoginWindow: this.rateLimitLoginWindow,
|
||||
backupPath: this.backupPath,
|
||||
backupPathEnvSet: this.backupPathEnvSet,
|
||||
backupSchedule: this.backupSchedule,
|
||||
backupsToKeep: this.backupsToKeep,
|
||||
maxBackupSize: this.maxBackupSize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue