feat: add configurable Status menu button (#851)

This commit is contained in:
Dream Hunter
2026-03-03 12:58:49 +08:00
committed by GitHub
parent 4ef4c0d938
commit f55e8c9818
8 changed files with 31 additions and 2 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ api.get('/open_api/settings', async (c) => {
"version": CONSTANTS.VERSION,
"showGithub": !utils.getBooleanValue(c.env.DISABLE_SHOW_GITHUB),
"disableAdminPasswordCheck": utils.getBooleanValue(c.env.DISABLE_ADMIN_PASSWORD_CHECK),
"enableAddressPassword": utils.getBooleanValue(c.env.ENABLE_ADDRESS_PASSWORD)
"enableAddressPassword": utils.getBooleanValue(c.env.ENABLE_ADDRESS_PASSWORD),
"statusUrl": utils.getStringValue(c.env.STATUS_URL)
});
})
+1
View File
@@ -47,6 +47,7 @@ type Bindings = {
NO_LIMIT_SEND_ROLE: string | undefined | null
ADMIN_CONTACT: string | undefined
COPYRIGHT: string | undefined
STATUS_URL: string | undefined
DISABLE_SHOW_GITHUB: string | boolean | undefined
FORWARD_ADDRESS_LIST: string | string[] | undefined
+2
View File
@@ -76,6 +76,8 @@ ENABLE_AUTO_REPLY = false
# Footer text
# COPYRIGHT = "Dream Hunter"
# DISABLE_SHOW_GITHUB = true
# Status monitoring page URL
# STATUS_URL = "https://status.example.com"
# default send balance, if not set, it will be 0
# DEFAULT_SEND_BALANCE = 1
# the role which can send emails without limit, multiple roles can be separated by ,