feat: 添加管理员密码保护 bootstrap 接口

This commit is contained in:
Cuishibing
2026-04-26 10:53:16 +08:00
parent b2ed9002dd
commit e53a674bff
3 changed files with 18 additions and 10 deletions

View File

@@ -1,5 +1,8 @@
module.exports = {
port: process.env.PORT || 3000,
admin: {
password: process.env.ADMIN_PASSWORD || '',
},
storage: {
baseDir: process.env.STORAGE_DIR || './storage',
get filesDir() { return this.baseDir + '/files'; },