mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-15 08:19:37 +00:00
Update backups config page to use backupPathEnvSet returned from endpoint, remove from ServerConfig
This commit is contained in:
parent
a1688488e5
commit
7c0b4e35d7
4 changed files with 9 additions and 11 deletions
|
|
@ -26,7 +26,6 @@ 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
|
||||
|
|
@ -189,8 +188,6 @@ class ServerSettings {
|
|||
Logger.info(`[ServerSettings] Using backup path from environment variable ${process.env.BACKUP_PATH}`)
|
||||
this.backupPath = process.env.BACKUP_PATH
|
||||
}
|
||||
|
||||
this.backupPathEnvSet = !!process.env.BACKUP_PATH || false
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
|
@ -209,7 +206,6 @@ 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