2024-12-04 00:24:34 +03:00
|
|
|
{{define "form/streamXHTTP"}}
|
2024-06-18 13:49:20 +03:00
|
|
|
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
|
|
|
|
<a-form-item label='{{ i18n "host" }}'>
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model.trim="inbound.stream.xhttp.host"></a-input>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label='{{ i18n "path" }}'>
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model.trim="inbound.stream.xhttp.path"></a-input>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-button icon="plus" size="small" @click="inbound.stream.xhttp.addHeader('host', '')"></a-button>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item :wrapper-col="{span:24}">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input-group compact v-for="(header, index) in inbound.stream.xhttp.headers">
|
2024-10-17 11:40:56 +03:00
|
|
|
<a-input style="width: 50%" v-model.trim="header.name"
|
|
|
|
placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
|
2024-06-18 13:49:20 +03:00
|
|
|
<template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
|
|
|
|
</a-input>
|
2024-10-17 11:40:56 +03:00
|
|
|
<a-input style="width: 50%" v-model.trim="header.value"
|
|
|
|
placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
|
2024-12-11 19:05:47 +03:00
|
|
|
<a-button slot="addonAfter" size="small" @click="inbound.stream.xhttp.removeHeader(index)">-</a-button>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-input>
|
|
|
|
</a-input-group>
|
|
|
|
</a-form-item>
|
2024-11-14 12:39:51 +03:00
|
|
|
<a-form-item label='Mode'>
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-select v-model="inbound.stream.xhttp.mode" style="width: 50%"
|
2024-11-14 12:39:51 +03:00
|
|
|
:dropdown-class-name="themeSwitcher.currentTheme">
|
|
|
|
<a-select-option v-for="key in MODE_OPTION" :value="key">[[ key ]]</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
2024-07-29 14:05:05 +03:00
|
|
|
<a-form-item label="Max Concurrent Upload">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model.trim="inbound.stream.xhttp.scMaxConcurrentPosts"></a-input>
|
2024-07-29 14:05:05 +03:00
|
|
|
</a-form-item>
|
2024-07-19 00:03:48 +03:00
|
|
|
<a-form-item label="Max Upload Size (Byte)">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model.trim="inbound.stream.xhttp.scMaxEachPostBytes"></a-input>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-form-item>
|
2024-07-29 14:13:37 +03:00
|
|
|
<a-form-item label="Min Upload Interval (Ms)">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model.trim="inbound.stream.xhttp.scMinPostsIntervalMs"></a-input>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-form-item>
|
2024-08-19 01:13:07 +03:00
|
|
|
<a-form-item label="Padding Bytes">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model.trim="inbound.stream.xhttp.xPaddingBytes"></a-input>
|
2024-08-19 01:13:07 +03:00
|
|
|
</a-form-item>
|
2024-07-29 14:13:37 +03:00
|
|
|
<a-form-item label="No SSE Header">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-switch v-model="inbound.stream.xhttp.noSSEHeader"></a-switch>
|
2024-07-29 14:13:37 +03:00
|
|
|
</a-form-item>
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-form-item label="Max Concurrency" v-if="!inbound.stream.xhttp.xmux.maxConnections">
|
|
|
|
<a-input v-model="inbound.stream.xhttp.xmux.maxConcurrency"></a-input>
|
2024-09-24 12:38:10 +03:00
|
|
|
</a-form-item>
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-form-item label="Max Connections" v-if="!inbound.stream.xhttp.xmux.maxConcurrency">
|
|
|
|
<a-input v-model="inbound.stream.xhttp.xmux.maxConnections"></a-input>
|
2024-09-16 17:47:59 +03:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="Max Reuse Times">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model="inbound.stream.xhttp.xmux.cMaxReuseTimes"></a-input>
|
2024-09-16 17:47:59 +03:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="Max Lifetime (ms)">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-input v-model="inbound.stream.xhttp.xmux.cMaxLifetimeMs"></a-input>
|
2024-09-16 17:47:59 +03:00
|
|
|
</a-form-item>
|
2024-12-16 12:13:01 +03:00
|
|
|
<a-form-item label="Max Request Times">
|
|
|
|
<a-input v-model="inbound.stream.xhttp.xmux.hMaxRequestTimes"></a-input>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label='Keep Alive Period'>
|
|
|
|
<a-input v-model.number="inbound.stream.xhttp.xmux.hKeepAlivePeriod"></a-input>
|
|
|
|
</a-form-item>
|
2024-11-21 17:26:25 +03:00
|
|
|
<a-form-item label="No gRPC Header">
|
2024-12-04 00:24:34 +03:00
|
|
|
<a-switch v-model="inbound.stream.xhttp.noGRPCHeader"></a-switch>
|
2024-11-21 17:26:25 +03:00
|
|
|
</a-form-item>
|
2024-06-18 13:49:20 +03:00
|
|
|
</a-form>
|
2024-10-17 11:40:56 +03:00
|
|
|
{{end}}
|