mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 23:50:25 +08:00
创建集群的时候可以设置DNS记录的默认TTL
This commit is contained in:
@@ -63,6 +63,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
// DNS相关
|
// DNS相关
|
||||||
DnsDomainId int64
|
DnsDomainId int64
|
||||||
DnsName string
|
DnsName string
|
||||||
|
DnsTTL int32
|
||||||
|
|
||||||
Must *actions.Must
|
Must *actions.Must
|
||||||
}) {
|
}) {
|
||||||
@@ -93,7 +94,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
// TODO 检查DnsDomainId的有效性
|
// TODO 检查DnsDomainId的有效性
|
||||||
|
|
||||||
// 系统服务
|
// 系统服务
|
||||||
systemServices := map[string]interface{}{}
|
var systemServices = map[string]any{}
|
||||||
if params.SystemdServiceIsOn {
|
if params.SystemdServiceIsOn {
|
||||||
systemServices[nodeconfigs.SystemServiceTypeSystemd] = &nodeconfigs.SystemdServiceConfig{
|
systemServices[nodeconfigs.SystemServiceTypeSystemd] = &nodeconfigs.SystemdServiceConfig{
|
||||||
IsOn: true,
|
IsOn: true,
|
||||||
@@ -111,6 +112,7 @@ func (this *CreateAction) RunPost(params struct {
|
|||||||
InstallDir: params.InstallDir,
|
InstallDir: params.InstallDir,
|
||||||
DnsDomainId: params.DnsDomainId,
|
DnsDomainId: params.DnsDomainId,
|
||||||
DnsName: params.DnsName,
|
DnsName: params.DnsName,
|
||||||
|
DnsTTL: params.DnsTTL,
|
||||||
HttpCachePolicyId: params.CachePolicyId,
|
HttpCachePolicyId: params.CachePolicyId,
|
||||||
HttpFirewallPolicyId: params.HttpFirewallPolicyId,
|
HttpFirewallPolicyId: params.HttpFirewallPolicyId,
|
||||||
SystemServicesJSON: systemServicesJSON,
|
SystemServicesJSON: systemServicesJSON,
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>记录TTL</td>
|
<td>解析记录TTL</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="ui input right labeled">
|
<div class="ui input right labeled">
|
||||||
<input type="text" name="ttl" maxlength="6" style="width: 6em" v-model="ttl"/>
|
<input type="text" name="ttl" maxlength="6" style="width: 6em" v-model="ttl"/>
|
||||||
|
|||||||
@@ -71,6 +71,16 @@
|
|||||||
<p class="comment">当前集群的子域名,和主域名一起组成集群节点的子域名。</p>
|
<p class="comment">当前集群的子域名,和主域名一起组成集群节点的子域名。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>解析记录TTL</td>
|
||||||
|
<td>
|
||||||
|
<div class="ui input right labeled">
|
||||||
|
<input type="text" name="dnsTTL" maxlength="6" style="width: 6em" value="0"/>
|
||||||
|
<span class="ui label">秒</span>
|
||||||
|
</div>
|
||||||
|
<p class="comment">生成解析记录时使用的TTL;每个DNS服务商或者套餐、账号限制各有不同,请注意允许的取值范围。0表示使用默认。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<submit-btn></submit-btn>
|
<submit-btn></submit-btn>
|
||||||
|
|||||||
Reference in New Issue
Block a user