mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
feat: add site password configuration support
This commit is contained in:
parent
5cd8d1d92e
commit
c59b381a35
@ -12,6 +12,8 @@ export interface ServerEnvConfig {
|
||||
DefaultLocale: string
|
||||
/** Force show all servers */
|
||||
ForceShowAllServers: boolean
|
||||
/** Site password */
|
||||
SitePassword: string
|
||||
}
|
||||
|
||||
/**
|
||||
@ -121,6 +123,7 @@ export function getAllEnvConfig(): { server: ServerEnvConfig; client: ClientEnvC
|
||||
NezhaAuth: getServerEnv("NezhaAuth"),
|
||||
DefaultLocale: getServerEnv("DefaultLocale"),
|
||||
ForceShowAllServers: parseBoolean(getServerEnv("ForceShowAllServers")),
|
||||
SitePassword: getServerEnv("SitePassword"),
|
||||
},
|
||||
client: {
|
||||
NezhaFetchInterval: parseNumber(getClientEnv("NezhaFetchInterval"), 5000),
|
||||
|
Loading…
Reference in New Issue
Block a user