mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
feat: add DB fields to AllSetting struct for web panel API
This commit is contained in:
parent
8a20cbd5c2
commit
d0592a1be8
1 changed files with 8 additions and 0 deletions
|
|
@ -104,6 +104,14 @@ type AllSetting struct {
|
|||
LdapDefaultExpiryDays int `json:"ldapDefaultExpiryDays" form:"ldapDefaultExpiryDays"`
|
||||
LdapDefaultLimitIP int `json:"ldapDefaultLimitIP" form:"ldapDefaultLimitIP"`
|
||||
|
||||
// Database settings
|
||||
DBType string `json:"dbType" form:"dbType"`
|
||||
DBHost string `json:"dbHost" form:"dbHost"`
|
||||
DBPort string `json:"dbPort" form:"dbPort"`
|
||||
DBUser string `json:"dbUser" form:"dbUser"`
|
||||
DBPassword string `json:"dbPassword" form:"dbPassword"`
|
||||
DBName string `json:"dbName" form:"dbName"`
|
||||
|
||||
// Registration settings
|
||||
TurnstileSiteKey string `json:"turnstileSiteKey" form:"turnstileSiteKey"`
|
||||
TurnstileSecretKey string `json:"-" form:"-"` // server-side only, never sent to frontend
|
||||
|
|
|
|||
Loading…
Reference in a new issue