mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 07:06:36 +08:00
refactor: remove unused remarks and add quick domain create
Drop remark fields from Zone, Zone domains, proxy routes, WAF rule groups and IP groups across models, APIs, UI and DB columns (keep certificate/origin remarks). Add quick-create domain input for short labels, @ apex and full FQDNs when binding domains.
This commit is contained in:
@@ -37,6 +37,7 @@ sidebar: false
|
||||
### 移除
|
||||
|
||||
- 移除托管域名(managed-domains)管理 API 与前端 `WebsiteService`;请改用 Zone / Zone 域名 API。
|
||||
- 移除 Zone、Zone 域名、反代路由、WAF 规则组与 IP 组的备注字段(前后端与数据库列同步删除);证书与源站备注保留。
|
||||
|
||||
### 修复
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ erDiagram
|
||||
ZONES {
|
||||
uint id PK
|
||||
string domain UK
|
||||
string remark
|
||||
}
|
||||
ZONE_DOMAINS {
|
||||
uint id PK
|
||||
@@ -35,17 +34,16 @@ erDiagram
|
||||
uint proxy_route_id
|
||||
string domain UK
|
||||
uint cert_id
|
||||
string remark
|
||||
}
|
||||
```
|
||||
|
||||
### `of_zones`
|
||||
|
||||
保存根域、备注、创建时间与更新时间。根域全局唯一且创建后不可原地修改;需要变更时新建 Zone 并迁移域名。删除 Zone 前必须先清空其 Zone 域名。
|
||||
保存根域、创建时间与更新时间。根域全局唯一且创建后不可原地修改;需要变更时新建 Zone 并迁移域名。删除 Zone 前必须先清空其 Zone 域名。
|
||||
|
||||
### `of_zone_domains`
|
||||
|
||||
保存 `zone_id`、明确 `domain`、可空的 `proxy_route_id`、可空的 `cert_id`、备注及时间戳。`domain` 全局唯一;所有关系字段建立索引但不建立物理外键。`proxy_route_id` 允许为空,以承接已准备证书但尚未配置反代的历史域名。
|
||||
保存 `zone_id`、明确 `domain`、可空的 `proxy_route_id`、可空的 `cert_id` 及时间戳。`domain` 全局唯一;所有关系字段建立索引但不建立物理外键。`proxy_route_id` 允许为空,以承接已准备证书但尚未配置反代的历史域名。
|
||||
|
||||
`of_proxy_routes` 逐步移除 `domain`、`domains`、`cert_id`、`cert_ids` 与 `domain_cert_ids` 等域名/证书冗余列。路由不得再指定任何 TLS 证书;路由名称 `site_name` 成为稳定的人类可读标识,编译器从关联的 Zone 域名读取 `server_name` 与其 `cert_id`。这使每个明确域名的证书只有一个来源。
|
||||
|
||||
|
||||
@@ -15436,9 +15436,6 @@ const docTemplate = `{
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -15462,9 +15459,6 @@ const docTemplate = `{
|
||||
"proxy_route_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -17133,9 +17127,6 @@ const docTemplate = `{
|
||||
"redirect_http": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"site_name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -17240,9 +17231,6 @@ const docTemplate = `{
|
||||
"redirect_http": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"site_name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -18553,9 +18541,6 @@ const docTemplate = `{
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"subscription_format": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -18644,9 +18629,6 @@ const docTemplate = `{
|
||||
"referenced_by_rule_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"subscription_format": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -18796,9 +18778,6 @@ const docTemplate = `{
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18889,9 +18868,6 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -18934,9 +18910,6 @@ const docTemplate = `{
|
||||
},
|
||||
"domain": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18945,9 +18918,6 @@ const docTemplate = `{
|
||||
"properties": {
|
||||
"domain": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18966,9 +18936,6 @@ const docTemplate = `{
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -15429,9 +15429,6 @@
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -15455,9 +15452,6 @@
|
||||
"proxy_route_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -17126,9 +17120,6 @@
|
||||
"redirect_http": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"site_name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -17233,9 +17224,6 @@
|
||||
"redirect_http": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"site_name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -18546,9 +18534,6 @@
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"subscription_format": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -18637,9 +18622,6 @@
|
||||
"referenced_by_rule_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"subscription_format": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -18789,9 +18771,6 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18882,9 +18861,6 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -18927,9 +18903,6 @@
|
||||
},
|
||||
"domain": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18938,9 +18911,6 @@
|
||||
"properties": {
|
||||
"domain": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18959,9 +18929,6 @@
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -1631,8 +1631,6 @@ definitions:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
remark:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
type: object
|
||||
@@ -1648,8 +1646,6 @@ definitions:
|
||||
type: integer
|
||||
proxy_route_id:
|
||||
type: integer
|
||||
remark:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
zone_id:
|
||||
@@ -2742,8 +2738,6 @@ definitions:
|
||||
type: integer
|
||||
redirect_http:
|
||||
type: boolean
|
||||
remark:
|
||||
type: string
|
||||
site_name:
|
||||
type: string
|
||||
tunnel_id:
|
||||
@@ -2813,8 +2807,6 @@ definitions:
|
||||
type: integer
|
||||
redirect_http:
|
||||
type: boolean
|
||||
remark:
|
||||
type: string
|
||||
site_name:
|
||||
type: string
|
||||
tunnel_id:
|
||||
@@ -3697,8 +3689,6 @@ definitions:
|
||||
type: array
|
||||
name:
|
||||
type: string
|
||||
remark:
|
||||
type: string
|
||||
subscription_format:
|
||||
type: string
|
||||
subscription_mapping_rule:
|
||||
@@ -3757,8 +3747,6 @@ definitions:
|
||||
type: string
|
||||
referenced_by_rule_count:
|
||||
type: integer
|
||||
remark:
|
||||
type: string
|
||||
subscription_format:
|
||||
type: string
|
||||
subscription_mapping_rule:
|
||||
@@ -3858,8 +3846,6 @@ definitions:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
remark:
|
||||
type: string
|
||||
type: object
|
||||
waf.RuleGroupView:
|
||||
properties:
|
||||
@@ -3919,8 +3905,6 @@ definitions:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
remark:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
type: object
|
||||
@@ -3949,15 +3933,11 @@ definitions:
|
||||
type: integer
|
||||
domain:
|
||||
type: string
|
||||
remark:
|
||||
type: string
|
||||
type: object
|
||||
zone.Input:
|
||||
properties:
|
||||
domain:
|
||||
type: string
|
||||
remark:
|
||||
type: string
|
||||
type: object
|
||||
zone.ListItem:
|
||||
properties:
|
||||
@@ -3969,8 +3949,6 @@ definitions:
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
remark:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user