mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:31:54 +08:00
集群设置--网站设置中“处理未绑定域名方式”支持跳转到网址
This commit is contained in:
@@ -3,8 +3,9 @@ package serverconfigs
|
||||
import "github.com/iwind/TeaGo/maps"
|
||||
|
||||
const (
|
||||
DomainMismatchActionPage = "page"
|
||||
DomainMismatchActionClose = "close"
|
||||
DomainMismatchActionPage = "page"
|
||||
DomainMismatchActionClose = "close"
|
||||
DomainMismatchActionRedirect = "redirect"
|
||||
)
|
||||
|
||||
type DomainMismatchPageOptions struct {
|
||||
@@ -15,6 +16,10 @@ type DomainMismatchPageOptions struct {
|
||||
type DomainMismatchCloseOptions struct {
|
||||
}
|
||||
|
||||
type DomainMismatchRedirectOptions struct {
|
||||
URL string `yaml:"url" json:"url"`
|
||||
}
|
||||
|
||||
type DomainMismatchAction struct {
|
||||
Code string `yaml:"code" json:"code"` // 动作代号
|
||||
Options maps.Map `yaml:"options" json:"options"` // 动作选项
|
||||
|
||||
Reference in New Issue
Block a user