mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
* test(deps): use self admin-frontend * feat: separate real ip header of frontend/agent * test(ci): test * Revert "test(ci): test" This reverts commit 1634c7e7d7bca2873c13955abb582ea88645844f. * test(ci): test * test(ci): test * test(ci): test * Revert "test(ci): test" This reverts commit 8fce20a07e5a9503f665937337050d4373ca7e78. * Revert "test(ci): test" This reverts commit 3267cccbfb81776a711e8cb34e676536f0852d1c. * Revert "test(ci): test" This reverts commit 566660c0c6a9875864aa46537bcc6788769337eb. * Revert "test(deps): use self admin-frontend" This reverts commit 16a838b374ff040800b2c1c5f8e5ede577645669.
46 lines
2.2 KiB
Go
46 lines
2.2 KiB
Go
package model
|
|
|
|
type SettingForm struct {
|
|
DNSServers string `json:"dns_servers,omitempty" validate:"optional"`
|
|
IgnoredIPNotification string `json:"ignored_ip_notification,omitempty" validate:"optional"`
|
|
IPChangeNotificationGroupID uint64 `json:"ip_change_notification_group_id,omitempty"` // IP变更提醒的通知组
|
|
Cover uint8 `json:"cover,omitempty"`
|
|
SiteName string `json:"site_name,omitempty" minLength:"1"`
|
|
Language string `json:"language,omitempty" minLength:"2"`
|
|
InstallHost string `json:"install_host,omitempty" validate:"optional"`
|
|
CustomCode string `json:"custom_code,omitempty" validate:"optional"`
|
|
CustomCodeDashboard string `json:"custom_code_dashboard,omitempty" validate:"optional"`
|
|
WebRealIPHeader string `json:"web_real_ip_header,omitempty" validate:"optional"` // 前端真实IP
|
|
AgentRealIPHeader string `json:"agent_real_ip_header,omitempty" validate:"optional"` // Agent真实IP
|
|
UserTemplate string `json:"user_template,omitempty" validate:"optional"`
|
|
|
|
AgentTLS bool `json:"tls,omitempty" validate:"optional"`
|
|
EnableIPChangeNotification bool `json:"enable_ip_change_notification,omitempty" validate:"optional"`
|
|
EnablePlainIPInNotification bool `json:"enable_plain_ip_in_notification,omitempty" validate:"optional"`
|
|
}
|
|
|
|
type Setting struct {
|
|
ConfigForGuests
|
|
ConfigDashboard
|
|
|
|
IgnoredIPNotificationServerIDs map[uint64]bool `json:"ignored_ip_notification_server_ids,omitempty"`
|
|
Oauth2Providers []string `json:"oauth2_providers,omitempty"`
|
|
}
|
|
|
|
type FrontendTemplate struct {
|
|
Path string `json:"path,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
Repository string `json:"repository,omitempty"`
|
|
Author string `json:"author,omitempty"`
|
|
Version string `json:"version,omitempty"`
|
|
IsAdmin bool `json:"is_admin,omitempty"`
|
|
IsOfficial bool `json:"is_official,omitempty"`
|
|
}
|
|
|
|
type SettingResponse struct {
|
|
Config Setting `json:"config"`
|
|
|
|
Version string `json:"version,omitempty"`
|
|
FrontendTemplates []FrontendTemplate `json:"frontend_templates,omitempty"`
|
|
}
|