mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
добавил secretWEbPath в UI и model.Server
This commit is contained in:
parent
20efe2258c
commit
b687487aff
2 changed files with 9 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ type Server struct {
|
||||||
Name string `json:"name" gorm:"unique;not null" form:"name"`
|
Name string `json:"name" gorm:"unique;not null" form:"name"`
|
||||||
Address string `json:"address" gorm:"not null" form:"address"`
|
Address string `json:"address" gorm:"not null" form:"address"`
|
||||||
Port int `json:"port" gorm:"not null" form:"port"`
|
Port int `json:"port" gorm:"not null" form:"port"`
|
||||||
|
SecretWebPath string `json:"secretWebPath" gorm:"not null" form:"secretWebPath"`
|
||||||
APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"`
|
APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"`
|
||||||
Enable bool `json:"enable" gorm:"default:true" form:"enable"`
|
Enable bool `json:"enable" gorm:"default:true" form:"enable"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,12 @@
|
||||||
<input type="number" class="form-control"
|
<input type="number" class="form-control"
|
||||||
v-model.number="modal.server.port" />
|
v-model.number="modal.server.port" />
|
||||||
</div>
|
</div>
|
||||||
|
<!-- secert web path -->
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Secret Web Path</label>
|
||||||
|
<input type="text" class="form-control"
|
||||||
|
v-model="modal.server.secretWebPath" />
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>API Key</label>
|
<label>API Key</label>
|
||||||
<input type="text" class="form-control" v-model="modal.server.apiKey" />
|
<input type="text" class="form-control" v-model="modal.server.apiKey" />
|
||||||
|
|
@ -158,6 +164,7 @@
|
||||||
name: "",
|
name: "",
|
||||||
address: "",
|
address: "",
|
||||||
port: 0,
|
port: 0,
|
||||||
|
secretWebPath: "",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
enable: true,
|
enable: true,
|
||||||
},
|
},
|
||||||
|
|
@ -183,6 +190,7 @@
|
||||||
name: "",
|
name: "",
|
||||||
address: "",
|
address: "",
|
||||||
port: 0,
|
port: 0,
|
||||||
|
secretWebPath: "",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
enable: true,
|
enable: true,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue