mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 07:27:27 +08:00
feat: add configurable Status menu button (#851)
This commit is contained in:
@@ -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)
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
Vendored
+1
@@ -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
|
||||
|
||||
|
||||
@@ -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 ,
|
||||
|
||||
Reference in New Issue
Block a user