mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-08 00:05:19 +08:00
反向代理源站可以设置权重
This commit is contained in:
@@ -9,6 +9,7 @@ Vue.component("origin-list-box", {
|
||||
methods: {
|
||||
createPrimaryOrigin: function () {
|
||||
teaweb.popup("/servers/server/settings/origins/addPopup?originType=primary&" + this.vParams, {
|
||||
height: "22em",
|
||||
callback: function (resp) {
|
||||
window.location.reload()
|
||||
}
|
||||
@@ -16,6 +17,7 @@ Vue.component("origin-list-box", {
|
||||
},
|
||||
createBackupOrigin: function () {
|
||||
teaweb.popup("/servers/server/settings/origins/addPopup?originType=backup&" + this.vParams, {
|
||||
height: "22em",
|
||||
callback: function (resp) {
|
||||
window.location.reload()
|
||||
}
|
||||
@@ -23,6 +25,7 @@ Vue.component("origin-list-box", {
|
||||
},
|
||||
updateOrigin: function (originId, originType) {
|
||||
teaweb.popup("/servers/server/settings/origins/updatePopup?originType=" + originType + "&" + this.vParams + "&originId=" + originId, {
|
||||
height: "22em",
|
||||
callback: function (resp) {
|
||||
window.location.reload()
|
||||
}
|
||||
|
||||
@@ -29,6 +29,13 @@
|
||||
<p class="comment">源站服务器地址,通常是一个IP(或域名)加端口<span v-if="serverType == 'httpProxy'">,不需要加 http:// 或 https://</span>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>权重</td>
|
||||
<td>
|
||||
<input type="text" name="weight" maxlength="4" value="10" style="width:5em"/>
|
||||
<p class="comment">数字越大,代表分配的请求比例越多。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<submit-btn></submit-btn>
|
||||
</form>
|
||||
@@ -31,6 +31,13 @@
|
||||
<p class="comment">源站服务器地址,通常是一个IP(或域名)加端口<span v-if="serverType == 'httpProxy'">,不需要加 http:// 或 https://</span>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>权重</td>
|
||||
<td>
|
||||
<input type="text" name="weight" maxlength="4" v-model="origin.weight" style="width:5em"/>
|
||||
<p class="comment">数字越大,代表分配的请求比例越多。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<submit-btn></submit-btn>
|
||||
</form>
|
||||
Reference in New Issue
Block a user